Minimum Spanning Tree

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

문제

MianKing has a graph with nn nodes and mm edges, where the ii-th edge (x_i,y_i)(x\_i, y\_i) has an edge weight of w_iw\_i.

The Minimum Spanning Tree of the graph is a spanning tree with the minimum sum of edge weights.

MianKing forgot the weights w_1...mw\_{1...m}, but he still remembers that w_1...mw\_{1...m} are a permutation of 1...m\\{1...m\\} and that the edge set of the Minimum Spanning Tree of this graph consists of the first n1n - 1 edges.

Now you need to help MianKing to calculate how many w_1...mw\_{1...m} satisfy the conditions above. The answer may be very large, so you only need to output the answer modulo 998,244,353998\\,244\\,353.

입력

The first line contains two integers nn and mm (2n202 \leq n \leq 20, n1m100n - 1 \leq m \leq 100).

Then there are mm lines, where the ii-th line contains two integers x_ix\_i and y_iy\_i (1x_i,y_in1 \le x\_i, y\_i \le n).

It is guaranteed that the edges (x_1,y_1)(x\_1, y\_1), \ldots, (x_n1,y_n1)(x\_{n - 1}, y\_{n - 1}) form a tree with nn nodes.

Note that the graph may have multiple edges and self-loops.

출력

Output the answer modulo 998,244,353998\\,244\\,353.