Given a tree with N nodes and N−1 edges rooted at node 1. You have to answer Q queries. In every query, you will be given a node x.
Alice will tell his friend Bob the distance from 1 to x. But Bob only knows how to reach a particular distance from 1. Find the probability that Bob will reach x in one try. If P will be the probability then print 1P in each query.
Note - The distance between two vertices in a tree is equal to the number of edges on the unique simple path between them.
Input Format
Output Format
For each query, If P will be the probability to reach x in one try then print 1P in a separate line.
Constraints
1≤N,Q≤1051≤Xi,Yi≤NXi≠Yi1≤x≤N