Problem: You are given an undirected graph with n vertices and m edges. You have to write a number on each vertex of this graph, each number should be either 0 or 1. After that, you write a number on each edge equal to the sum of numbers on vertices incident to that edge.

You have to choose the numbers you will write on the vertices so that there is at least one edge with 0 written on it, at least one edge with 1 and at least one edge with 2. How many ways are there to do it? Two ways to choose numbers are different if there exists at least one vertex which has different numbers written on it in these two ways.

Input

The first line contains two integers n and m (1 ≤ n ≤ 40, 0 ≤ m ≤ (n(n - 1))/(2)) — the number of vertices and the number of edges, respectively.

Then m lines follow, each line contains two numbers x_i and y_i (1 ≤ x_i, y_i ≤ n, x_i ≠ y_i) — the endpoints of the i-th edge. It is guaranteed that each pair of vertices is connected by at most one edge.

Output

Print one integer — the number of ways to write numbers on all vertices so that there exists at least one edge with 0 written on it, at least one edge with 1 and at least one edge with 2.

Examples

Input


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


Output


20


Input


4 4
1 2
2 3
3 4
4 1


Output


4


Input


35 29
1 2
2 3
3 1
4 1
4 2
3 4
7 8
8 9
9 10
10 7
11 12
12 13
13 14
14 15
15 16
16 17
17 18
18 19
19 20
20 21
21 22
22 23
23 24
24 25
25 26
26 27
27 28
28 29
29 30


Output


34201047040

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
const int K = 20;
int n, m, bt[1 << K], col[50], cnt, cntz, sz;
long long g[50], dp[7], dd[7], tmp[7], comp, ans;
bool was[50];
bool BI = 1;
void dfs(int v, int curcol = 0) {
  if (was[v]) {
    if (col[v] != curcol) BI = 0;
    return;
  }
  was[v] = 1;
  col[v] = curcol;
  sz++;
  comp |= (1ll << v);
  for (int to = 0; to < n; to++)
    if ((g[v] >> to) & 1) dfs(to, col[v] ^ 1);
}
long long bb(long long mask) {
  return min(bt[mask & ((1 << K) - 1)], bt[mask >> K] + K);
}
long long fa(long long mask) {
  if (mask == 0) return 1;
  int v = bb(mask);
  mask ^= (1ll << v);
  long long msk = (g[v] & mask);
  if (msk == 0) return fa(mask) * 2;
  return fa(mask ^ msk) + fa(mask);
}
int main() {
  for (int i = 0; i < (1 << K); i++) {
    bt[i] = 100;
    for (int j = 0; j < K; j++)
      if ((i >> j) & 1) bt[i] = min(bt[i], j);
  }
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    int v, u;
    cin >> v >> u;
    --v, --u;
    g[v] |= (1ll << u);
    g[u] |= (1ll << v);
  }
  dp[0] = 1;
  for (int i = 0; i < n; i++)
    if (!was[i]) {
      sz = 0;
      comp = 0;
      BI = 1;
      dfs(i);
      if (sz == 1) {
        for (int i = 0; i < 8; i++) dp[i] *= 2;
        continue;
      }
      long long res = fa(comp);
      tmp[0] = 0;
      tmp[1] = 1;
      tmp[2] = BI * 2;
      tmp[3] = res;
      tmp[4] = 1;
      tmp[5] = 2;
      tmp[6] = res;
      tmp[7] = (1ll << sz);
      for (int i = 0; i < 8; i++)
        for (int j = 0; j < i; j++)
          if ((i | j) == i) tmp[i] -= tmp[j];
      for (int i = 0; i < 8; i++)
        for (int j = 0; j < 8; j++) dd[i | j] += dp[i] * tmp[j];
      for (int i = 0; i < 8; i++) dp[i] = dd[i], dd[i] = 0;
    }
  cout << dp[7] << endl;
  return 0;
}