#d1604. 环的数量

环的数量

Number of Cycles

Problem Description

Given a simple graph with nn vertices and mm edges, count the number of simple cycles.

Input Format

The first line contains two integers nn and mm. Lines 22 through m+1m+1 each contain two integers x,yx, y, indicating an edge between vertices xx and yy.

Output Format

Output one line containing the number of cycles in the graph.

Sample Input

4 6
1 2
1 3
1 4
2 3
2 4
3 4

Sample Output

7

Constraints

For 100%100\% of the data, it is guaranteed that 1≤n≤19,m≤n×(n−1)21\le n \le 19, m \le \frac{n\times (n-1)}{2}.