Score : $500$ points
You are given a simple undirected graph with $N$ vertices and $M$ edges. The vertices are numbered $1, \dots, N$, and the $i$-th $(1 \leq i \leq M)$ edge connects Vertices $U_i$ and $V_i$.
There are $2^N$ ways to paint each vertex red or blue. Find the number, modulo $998244353$, of such ways that satisfy all of the following conditions:
Input is given from Standard Input in the following format:
$N$ $M$ $K$ $U_1$ $V_1$ $\vdots$ $U_M$ $V_M$
Print the answer.
4 4 2 1 2 1 3 2 3 3 4
2
The following two ways satisfy the conditions.
In either of the ways above, the $2$-nd and $3$-rd edges connect vertices painted in different colors.
10 10 3 1 2 2 4 1 5 3 6 3 9 4 10 7 8 9 10 5 9 3 4
64