You are given a connected graph with N nodes and M edges. Two players A and B are playing a game with this graph. A person X chooses an edge uniformly, randomly, and removes it. If the size (number of nodes in component) of two non-empty connected component created are EVEN, then A wins otherwise player B wins.
Find the probability of winning the game for A and B. The probability is of the PQ form where P and Q are both coprimes. Print PQ−1 modulo 1000000007.
Note: X can only select the edges which divide the graph into two non-empty connected components after they are removed. If no such edge is present in the graph, then the probability to win can be 0 for both A and B.
Input format
Output format
Print two space-separated integers denoting the probability of winning for A and B respectively.
Constraints
1≤N, M≤1e5
X can choose only edge 1-4 and B wins in that case.