The first line contains two space-separated integers $n, m (1 ≤ n ≤ 18, 0 ≤ m ≤ n(n − 1)/2)$ – the number of attractions and the number of slides, respectively. The attractions are numbered $1$ through $n$.
Then, $m$ lines follow. The $i$-th of these lines contains two space-separated integers $a_i, b_i (1 ≤ a_i,b_i ≤ n)$ denoting a slide from ai to bi.
You may assume that:
- There are no self-loops. (For each $i$: $a_i \ne b_i$.)
- No slide appears twice. (For all $i \ne j$: $a_i \ne a_j$ or $b_i \ne b_j$.)
- No pair of attractions is connected in both directions. (The unordered pairs $\{a_i,b_i\}$ are distinct.)