Problem: Harry Potter lost his Invisibility Cloak, running from the school caretaker Filch. Finding an invisible object is not an easy task. Fortunately, Harry has friends who are willing to help. Hermione Granger had read "The Invisibility Cloaks, and Everything about Them", as well as six volumes of "The Encyclopedia of Quick Search of Shortest Paths in Graphs, Network Flows, the Maximal Increasing Subsequences and Other Magical Objects". She has already developed a search algorithm for the invisibility cloak in complex dynamic systems (Hogwarts is one of them).

Hogwarts consists of n floors, numbered by integers from 1 to n. Some pairs of floors are connected by staircases. The staircases may change its position, moving exactly one end. Formally the situation is like this: if a staircase connects the floors a and b, then in one move it may modify its position so as to connect the floors a and c or b and c, where c is any floor different from a and b. Under no circumstances the staircase can connect a floor with itself. At the same time there can be multiple stairs between a pair of floors.

Initially, Harry is on the floor with the number 1. He does not remember on what floor he has lost the cloak and wants to look for it on each of the floors. Therefore, his goal is to visit each of n floors at least once. Harry can visit the floors in any order and finish the searching at any floor.

Nowadays the staircases move quite rarely. However, Ron and Hermione are willing to put a spell on any of them to help Harry find the cloak. To cause less suspicion, the three friends plan to move the staircases one by one, and no more than once for each staircase. In between shifting the staircases Harry will be able to move about the floors, reachable at the moment from the staircases, and look for his Invisibility Cloak. It is assumed that during all this time the staircases will not move spontaneously.

Help the three friends to compose a searching plan. If there are several variants to solve the problem, any valid option (not necessarily the optimal one) will be accepted.

Input

The first line contains integers n and m (1 ≤ n ≤ 100000, 0 ≤ m ≤ 200000), which are the number of floors and staircases in Hogwarts, respectively. The following m lines contain pairs of floors connected by staircases at the initial moment of time.

Output

In the first line print "YES" (without the quotes) if Harry is able to search all the floors, and "NO" otherwise. If the answer is positive, then print on the second line the number of staircases that Ron and Hermione will have to shift. Further output should look like this:

Harry's moves

a staircase's move

Harry's moves

a staircase's move

...

a staircase's move

Harry's moves

Each "Harry's move" should be represented as a list of floors in the order in which they have been visited. The total amount of elements of these lists must not exceed 106. When you print each list, first print the number of elements in it, and then in the same line print the actual space-separated elements. The first number in the first list should be the number 1 (the floor, from which Harry begins to search). Any list except the first one might contain the zero number of elements. Note that Harry can visit some floors again, but must visit all n floors at least once. Two consecutively visited floors must be directly connected by a staircase (at the time Harry goes from one of them to the other one). No two floors that are visited consequtively can be equal.

In the description of a "staircase's move" indicate the number of staircase (the staircases are numbered from 1 to m in the order in which they are given in the input data) and its new location (two numbers of the connected floors in any order).

Any staircase can be moved at most once. If there are several solutions, output any.

Examples

Input

6 4
1 2
1 3
2 3
4 5


Output

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


Input

4 1
1 2


Output

NO


Input

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


Output

YES
0
6 1 2 1 3 4 5

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
template <class _T>
inline _T sqr(const _T& x) {
  return x * x;
}
template <class _T>
inline string tostr(const _T& a) {
  ostringstream os("");
  os << a;
  return os.str();
}
template <class _T>
inline istream& operator<<(istream& is, const _T& a) {
  is.putback(a);
  return is;
}
const long double PI = 3.1415926535897932384626433832795;
const long double EPS = 1e-11;
int n, m, k, z;
vector<int> a[102400];
int e[202400][2];
vector<int> c[102400];
int ind[102400];
int ans[2024000][4];
bool u[102400];
int u2[102400];
int gg;
bool cmp(int p1, int p2) { return c[p1].size() > c[p2].size(); }
int nv(int v, int i) {
  int t = a[v][i];
  if (e[t][0] == v)
    return e[t][1];
  else
    return e[t][0];
}
bool findc(int v, int ne, int& v1, int& v2) {
  u2[v] = 1;
  for (int i = 0; i < (int)(a[v].size()); i++) {
    int vn = nv(v, i);
    if (!u2[vn]) {
      if (findc(vn, a[v][i], v1, v2)) return true;
    } else if (u2[vn] == 1 && a[v][i] != ne) {
      v1 = v;
      v2 = vn;
      return true;
    }
  }
  u2[v] = 2;
  return false;
}
void dfs0(int v, int k) {
  u[v] = true;
  c[k].push_back(v);
  for (int i = 0; i < (int)(a[v].size()); i++) {
    int vn = nv(v, i);
    if (!u[vn]) {
      dfs0(vn, k);
    }
  }
}
void go(int v);
void dfs(int v) {
  u[v] = true;
  if (!z || ans[z - 1][0] != 0 || ans[z - 1][1] != v) {
    ans[z][0] = 0;
    ans[z][1] = v;
    z++;
  }
  for (int i = 0; i < (int)(a[v].size()); i++) {
    int vn = nv(v, i);
    if (!u[vn]) {
      dfs(vn);
    }
    if (!z || ans[z - 1][0] != 0 || ans[z - 1][1] != v) {
      ans[z][0] = 0;
      ans[z][1] = v;
      z++;
    }
  }
}
void dfs2(int v, int ne) {
  u2[v] = 1;
  if (!z || ans[z - 1][0] != 0 || ans[z - 1][1] != v) {
    ans[z][0] = 0;
    ans[z][1] = v;
    z++;
  }
  for (int i = 0; i < (int)(a[v].size()); i++) {
    int vn = nv(v, i);
    if (!u2[vn]) {
      dfs2(vn, a[v][i]);
      if (!z || ans[z - 1][0] != 0 || ans[z - 1][1] != v) {
        ans[z][0] = 0;
        ans[z][1] = v;
        z++;
      }
      gg++;
      if (gg < k) {
        ans[z][0] = 1;
        int q = a[v][i];
        ans[z][1] = q;
        ans[z][2] = e[q][0];
        ans[z][3] = e[q][1];
        int v2 = c[ind[gg]][0];
        if (e[q][0] == vn)
          ans[z][2] = v2;
        else
          ans[z][3] = v2;
        z++;
        go(v2);
        ans[z][0] = 0;
        ans[z][1] = v;
        z++;
      }
    } else if (u2[vn] == 1 && a[v][i] != ne) {
      gg++;
      if (gg < k) {
        ans[z][0] = 1;
        int q = a[v][i];
        ans[z][1] = q;
        ans[z][2] = e[q][0];
        ans[z][3] = e[q][1];
        int v2 = c[ind[gg]][0];
        if (e[q][0] == vn)
          ans[z][2] = v2;
        else
          ans[z][3] = v2;
        z++;
        go(v2);
        ans[z][0] = 0;
        ans[z][1] = v;
        z++;
      }
    }
  }
  u2[v] = 2;
}
void go(int v) {
  dfs(v);
  dfs2(v, -1);
}
int main() {
  cout << setiosflags(ios::fixed) << setprecision(10);
  scanf("%d%d", &n, &m);
  for (int i = 0; i < (int)(m); i++) {
    int x, y;
    scanf("%d%d", &x, &y);
    x--;
    y--;
    e[i][0] = x;
    e[i][1] = y;
    a[x].push_back(i);
    a[y].push_back(i);
  }
  int v1 = -1;
  int v2 = -1;
  memset((u2), 0, sizeof(u2));
  for (int i = 0; i < (int)(n); i++) {
    if (!u2[i]) {
      if (findc(i, -1, v1, v2)) break;
    }
  }
  memset((u2), 0, sizeof(u2));
  memset((u), 0, sizeof(u));
  k = 0;
  for (int i = 0; i < (int)(n); i++) {
    if (!u[i]) {
      dfs0(i, k);
      k++;
    }
  }
  for (int i = 0; i < (int)(k); i++) {
    ind[i] = i;
  }
  sort(ind + 1, ind + k, cmp);
  memset((u), 0, sizeof(u));
  memset((u2), 0, sizeof(u2));
  z = 0;
  gg = 0;
  int st = 0;
  if (n > 1 && !a[0].size()) {
    for (int i = 0; i < (int)(n); i++) {
      if (v1 != -1 && i != v1) continue;
      if (a[i].size() > 1) {
        ans[z][0] = 0;
        ans[z][1] = 0;
        z++;
        int t;
        if (v2 != -1) {
          t = -1;
          for (int j = 0; j < (int)(a[i].size()); j++) {
            int vn = nv(i, j);
            if (vn == v2) {
              t = a[i][j];
              for (int l = (j); l <= (int)(a[i].size() - 2); l++) {
                a[i][l] = a[i][l + 1];
              }
              a[i].pop_back();
              break;
            }
          }
        } else {
          t = a[i].back();
          a[i].pop_back();
        }
        ans[z][0] = 1;
        ans[z][1] = t;
        ans[z][2] = e[t][0];
        ans[z][3] = e[t][1];
        int q;
        if (e[t][0] == i)
          ans[z][3] = 0, q = e[t][1];
        else
          ans[z][2] = 0, q = e[t][0];
        z++;
        for (int j = 0; j < (int)(a[q].size()); j++) {
          if (a[q][j] == t) {
            for (int l = (j); l <= (int)(a[q].size() - 2); l++) {
              a[q][l] = a[q][l + 1];
            }
            a[q].pop_back();
            break;
          }
        }
        st = i;
        for (int j = 0; j < (int)(k); j++) {
          c[j].clear();
        }
        memset((u), 0, sizeof(u));
        k = 0;
        for (int j = 0; j < (int)(n); j++) {
          if (!u[j]) {
            dfs0(j, k);
            k++;
          }
        }
        memset((u), 0, sizeof(u));
        memset((u2), 0, sizeof(u2));
        for (int j = 0; j < (int)(k); j++) {
          for (int l = 0; l < (int)(c[j].size()); l++) {
            if (c[j][l] == i) {
              swap(c[j], c[1]);
              break;
            }
          }
        }
        gg = 1;
        for (int j = 0; j < (int)(k); j++) {
          ind[j] = j;
        }
        sort(ind + 2, ind + k, cmp);
        u[0] = true;
        u2[0] = 2;
        break;
      }
    }
  }
  go(st);
  for (int i = 0; i < (int)(n); i++) {
    if (!u[i]) {
      z = -1;
    }
  }
  if (z == -1) {
    puts("NO");
  } else {
    puts("YES");
    int cnt = 0;
    for (int i = 0; i < (int)(z); i++) {
      if (ans[i][0] == 1) {
        cnt++;
      }
    }
    printf("%d\n", cnt);
    ans[z][0] = 1;
    for (int i = 0; i < (int)(z); i++) {
      int j = i;
      while (!ans[j][0]) j++;
      printf("%d", j - i);
      for (int l = (i); l <= (int)(j - 1); l++) {
        printf(" %d", ans[l][1] + 1);
      }
      puts("");
      if (j < z) {
        printf("%d %d %d\n", ans[j][1] + 1, ans[j][2] + 1, ans[j][3] + 1);
      }
      i = j;
    }
  }
  return 0;
}