Circuit

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

문제

Zhenya studies electricity at Physics practice lessons in his school. His next task is to analyze an electrical network.

Electrical network is the set of nodes, connected by wires. One of the nodes is a source node, and another one is a sink node. The electrical network in this task is correct.

Electrical network is called correct iff it can be constructed using following rules:

  • Basic network, that has a source node and a sink node connected by a single wire, is correct.
  • If there are two correct networks AA and BB, then the network S(A,B)S(A, B), created by joining the sink node of AA and the source node of BB, is correct. The source node of the resulting network is the source node of AA, the sink node is the sink node of BB.
  • If there are two correct networks AA and BB, then the network P(A,B)P(A, B), created by joining the source node of AA with the source node of BB and the sink node of AA with the sink node of BB is correct. The source node of the resulting network is the joined source node, the sink node is the joined sink node.
  • Every correct network can be created from basic networks using a finite number of the two previous rules.

The picture shows examples of correct networks.

Basic networkNetwork from example 1Network from example 2Network from example 3
Other examples of correct networks

Zhenya doesn't like Physics, but he likes Graph Theory. So, instead of doing his task, he wants to count the number of ways to remove some wires from the network, so that the remaining wires formed a tree: there was exactly one path by wires from any node to any other node. 

That number could be very big, so Zhenya wants to find its reminder modulo 998,244,353998\\,244\\,353.

입력

The first line of input contains two itnegers nn and mm --- number of nodes in the network and the number of wires (1n,m100,0001 \le n,m \le 100\\,000).

The following mm lines contain the description of wires. Each of them contains two integers aa and bb, they mean that nodes aa and bb are connected by a wire (1a,bn1 \le a, b \le n; aba \ne b).

It's guaranteed, that the given network is correct. The source node is the node number 11, and the sink node is the node number nn. Note, that correct networks can have several wires between a pair of nodes.

출력

Print one integer --- the number of ways to remove the wires, modulo 998,244,353998\\,244\\,353.

힌트

In the first and in the third exmaple any single wire can be removed.

In the second example either wire (1,6)(1, 6) and any other wire can be removed, or one wire from each of the chains 12461-2-4-6 and 13561-3-5-6.