Given a connected tree with N vertices and N−1 edges, you must answer M queries of the type:
Note: A simple path is a path in a tree that does not have repeating vertices.
Input format
Output format
For each test case, answer all the M queries. For each query print Yes if there exists a simple path that contains all three vertices A, B, and C, otherwise print No. Print answer for each query in a new line.
Constraints
1≤T≤1053≤N≤2×1051≤u,v≤N1≤M≤2×1051≤A,B,C≤N The sum of all values of N over all test cases doesn't exceed 2×105The sum of all values of M over all test cases doesn't exceed 2×105
The first line denotes T = 1.
For test case 1:
We are given:
Now,