Connected Spanning Subgraph

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Bobo has a connected undirected graph GG with nn vertices and mm edges where vertices are conveniently labeled with 1,2,,n1, 2, \dots, n.

Bobo chooses a non-empty subset of edges such that the graph with the chosen edges is still connected. He would like to know the number of such subsets modulo 22.

Note that a graph is connected if, for any two vertices aa and bb, there exists a path which connects aa and bb.

입력

The input contains zero or more test cases, and is terminated by end-of-file. For each test case:

The first line contains two integers nn and mm (2n21052 \leq n \leq 2 \cdot 10^5, 1m21051 \leq m \leq 2 \cdot 10^5).

The ii-th of the following mm lines contains two integers a_ia\_i and b_ib\_i which denote an edge between vertices a_ia\_i and b_ib\_i.

It is guaranteed that the sum of all mm does not exceed 21052 \cdot 10^5, and all the given graphs are connected.

출력

For each test case, output an integer which denotes the remainder modulo 22.