A and B are preparing themselves for programming contests.

The University where A and B study is a set of rooms connected by corridors. Overall, the University has *n* rooms connected by *n* - 1 corridors so that you can get from any room to any other one by moving along the corridors. The rooms are numbered from 1 to *n*.

Every day А and B write contests in some rooms of their university, and after each contest they gather together in the same room and discuss problems. A and B want the distance from the rooms where problems are discussed to the rooms where contests are written to be equal. The distance between two rooms is the number of edges on the shortest path between them.

As they write contests in new rooms every day, they asked you to help them find the number of possible rooms to discuss problems for each of the following *m* days.
The first line contains integer *n* (1 ≤ *n* ≤ 10<sup class="upper-index">5</sup>) — the number of rooms in the University.

The next *n* - 1 lines describe the corridors. The *i*-th of these lines (1 ≤ *i* ≤ *n* - 1) contains two integers *a*<sub class="lower-index">*i*</sub> and *b*<sub class="lower-index">*i*</sub> (1 ≤ *a*<sub class="lower-index">*i*</sub>, *b*<sub class="lower-index">*i*</sub> ≤ *n*), showing that the *i*-th corridor connects rooms *a*<sub class="lower-index">*i*</sub> and *b*<sub class="lower-index">*i*</sub>.

The next line contains integer *m* (1 ≤ *m* ≤ 10<sup class="upper-index">5</sup>) — the number of queries.

Next *m* lines describe the queries. The *j*-th of these lines (1 ≤ *j* ≤ *m*) contains two integers *x*<sub class="lower-index">*j*</sub> and *y*<sub class="lower-index">*j*</sub> (1 ≤ *x*<sub class="lower-index">*j*</sub>, *y*<sub class="lower-index">*j*</sub> ≤ *n*) that means that on the *j*-th day A will write the contest in the room *x*<sub class="lower-index">*j*</sub>, B will write in the room *y*<sub class="lower-index">*j*</sub>.
print("_RANDOM_GUESS_1689644311.153299")# 1689644311.1533191