Bobo has a tree of n vertices numbered with
)
.
He subsequently adds m edges between vertex

and
)
where
)
is the vertex lying on the unique tree path between vertex

and

and closest to the vertex 0.
Let the graph obtained by adding the edges
)%2C%20(x_2%2C%20%5Cmathrm%7BLCA%7D(x_2%2C%20y_2))%2C%20%5Cdots%2C%20(x_i%2C%20%5Cmathrm%7BLCA%7D(x_i%2C%20y_i))%5C%7D)
to the tree be

,
and
)
be the number of connected components after the removal of vertex u from

.
Bobo knows that for
%20%5Coplus%20f_i(1)%20%5Coplus%20%5Cdots%20%5Coplus%20f_i(n%20-%201).)
(

denotes xor.)
Given

, he also knows that for

,
*
%20%5Cbmod%20n)
,
*
%20%5Cbmod%20n)
.
Help him to find

,

.
输入描述:
The input consists of several test cases and is terminated by end-of-file.
The first line of each test case contains six integers n, m, a, b,
,
.
The i-th of the following (n - 1) lines contains two integers
and
, which denotes the tree edge between vertex
and
.
输出描述:
For each test case, print two integers which denote
,
.
示例1
输入
复制
4 1 1 0 2 3
0 1
1 2
0 3
4 2 1 0 2 0
0 1
1 2
2 3
5 25 1 2 3 4
0 1
0 2
1 3
1 4
说明
The following table shows the detailed value for the second sample.

备注:
* 
* 
* 
* The sum of n does not exceed 25,000.