AKOJ正在加载中...

4364: A Simple Task_1

金币值:2 定数:1 时间限制:2.000 s 内存限制:256 M
正确:0 提交:0 正确率:0.00% 命题人:
点赞量:0 收藏量:0 题目类型:程序

题目描述

time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output

Given a simple graph, output the number of simple cycles in it. A simple cycle is a cycle with no repeated vertices or edges.

Input

The first line of input contains two integers n and m (1≤n≤19, 0≤m) — respectively the number of vertices and edges of the graph. Each of the subsequent m lines contains two integers a and b, (1≤a,bn, ab) indicating that vertices a and b are connected by an undirected edge. There is no more than one edge connecting any pair of vertices.

Output

Output the number of cycles in the given graph.

Examples
Input
4 6
1 2
1 3
1 4
2 3
2 4
3 4
Output
7
Note

The example graph is a clique and contains four cycles of length 3 and three cycles of length 4.