Tom love to play games with Tony.
They think a orderly tetrad (t,i,j,k) is valid, when it satisfy,
1. $1\leq i,j,k\leq t$
2. Exist a positive integer s, which can divide both i and j, and is not smaller than k.
They prepare some tetrads, take turns to operate. When one can't operate, he loses. A valid operate is,
1. Choose a tetrad.
2. Change it to another valid tetrad which is smaller than it on dictionary order.
When compare two tetrads, compare the first element. If equal, compare the second element, and so on.
They think that prepare tetrads every time they want to play is troublesome. So they paint a tree, there is a tetrad on each point. When they want to play, Tom random choose a point P, Tony random choose a point Q. Then they copy down tetrads on points which are on the route connect P and Q (include P and Q), start the game.
Tom always operate first, he wants to know the probability of he wins.