Determinant of a Graph

변 수가 정점 수보다 많아야 50개 더 많은 연결 무향 그래프에서 인접 행렬의 행렬식을 998244353으로 나눈 나머지를 구한다.

어려움8그래프수학행렬아직 제출이 없습니다시간 제한1초메모리 제한256 MB

문제

Consider a connected undirected graph in which the difference between the number of edges and the number of vertices is at most 5050. Please find the determinant of its adjacency matrix modulo 998,244,353998\\,244\\,353.

입력

The first line contains two integers nn and mm: the number of vertices and edges in the graph (1n21051 \le n \le 2 \cdot 10^{5}, n1mn+50n - 1 \le m \le n + 50).

The next mm lines describe edges of the graph. Each of them contains two integers uu and vv (1u,vn1 \le u, v \le n): the two vertices connected by an edge.

It is guaranteed that the graph does not contain self-loops and multiple edges. It is guaranteed that the graph is connected.

출력

Print a single integer: the determinant of the graph's adjacency matrix modulo 998,244,353998\\,244\\,353.