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;
const int MAX1 = 100002, MAX2 = 200002;
vector<int> vs[MAX1], es[MAX2];
int vsn, esn;
bool isolate[MAX1], vist[MAX1];
int iss[MAX1];
int cnt, ent, cnn, sn, t1, nxt;
int ct[MAX1], et[MAX1], tt[MAX1 * 4], tn;
int n, m;
struct edge {
  int to, nxt, eidx;
  bool mask;
  edge() {}
};
edge edges[MAX2 << 1];
int ees;
int head[MAX1], d[MAX1];
inline void add(int a, int b, int eidx) {
  edges[ees].nxt = head[a], edges[ees].to = b, edges[ees].eidx = eidx,
  head[a] = ees++;
  edges[ees].nxt = head[b], edges[ees].to = a, edges[ees].eidx = eidx,
  head[b] = ees++;
}
vector<int> Q;
pair<int, int> ee[MAX2];
int een;
int reE, reV;
void dfs(int v) {
  vist[v] = 1;
  cnt++;
  for (int i = head[v]; ~i; i = edges[i].nxt) {
    int u = edges[i].to;
    if (vist[u] == 0 && edges[i].mask == 0) {
      edges[i].mask = edges[i ^ 1].mask = 1;
      ent++;
      dfs(u);
    } else if (edges[i].mask == 0) {
      edges[i].mask = edges[i ^ 1].mask = 1;
      reE = edges[i].eidx, reV = v, ent++;
    }
  }
}
void dfs2(int v) {
  vist[v] = 1, tt[tn++] = v;
  int x;
  for (int i = head[v]; ~i; i = edges[i].nxt) {
    int u = edges[i].to;
    if (vist[u] == 0 && edges[i].mask == 0) {
      edges[i].mask = edges[i ^ 1].mask = 1;
      dfs2(u);
      tt[tn++] = v;
      ent--;
      if (ent == 0 && nxt != -1) {
        es[esn].push_back(edges[i].eidx);
        es[esn].push_back(v), es[esn++].push_back(nxt);
        for (int j = 0; j < tn; j++) vs[vsn].push_back(tt[j]);
        vsn++, tn = 0;
      } else if (t1 != sn) {
        x = iss[t1++];
        for (int j = 0; j < tn; j++) vs[vsn].push_back(tt[j]);
        vsn++, tn = 0;
        es[esn].push_back(edges[i].eidx);
        es[esn].push_back(v), es[esn++].push_back(x);
        tt[tn++] = x, tt[tn++] = v;
      }
    } else if (edges[i].mask == 0) {
      edges[i].mask = edges[i ^ 1].mask = 1;
      ent--;
      if (t1 != sn) {
        x = iss[t1++];
        for (int j = 0; j < tn; j++) vs[vsn].push_back(tt[j]);
        vsn++, tn = 0;
        es[esn].push_back(edges[i].eidx);
        es[esn].push_back(v), es[esn++].push_back(x);
        tt[tn++] = x, tt[tn++] = v;
      }
    }
  }
}
void print() {
  for (int v = 1; v <= n; v++) {
    printf("v = %d : ", v);
    for (int j = head[v]; ~j; j = edges[j].nxt) printf("%d->", edges[j].to);
    printf("\n");
  }
}
inline void ini() {
  for (int i = 0; i < ees; i++) edges[i].mask = 0;
}
int main() {
  scanf("%d%d", &n, &m);
  een = 1;
  memset(head, -1, sizeof(head)), ees = 0;
  for (int i = 1; i <= m; i++) {
    int a, b;
    scanf("%d%d", &a, &b);
    ee[een++] = {a, b};
    add(a, b, i);
    ++d[a], ++d[b];
  }
  een--;
  memset(vist, 0, sizeof(vist));
  reV = -1;
  ini();
  for (int i = 1; i <= n; i++) {
    if (vist[i] == 0) {
      cnt = ent = 0;
      dfs(i);
      if (cnt == 1) {
        isolate[i] = 1, iss[sn++] = i;
      } else
        ct[i] = cnt, et[i] = ent, cnn++;
    }
  }
  if (isolate[1] == 0) {
    if (cnn - 1 + sn <= m) {
      for (int i = 1; i <= n; i++) {
        if (!isolate[i] && ct[i]) Q.push_back(i);
      }
      for (int i = 0; i < Q.size(); i++) {
        if (Q[i] == 1) {
          swap(Q[i], Q[0]);
          break;
        }
      }
      memset(vist, 0, sizeof(vist));
      t1 = 0;
      ini();
      for (int i = 0; i < Q.size(); i++) {
        if (i != (int)Q.size() - 1)
          nxt = Q[i + 1];
        else
          nxt = -1;
        ent = et[Q[i]];
        dfs2(Q[i]);
      }
      printf("YES\n");
      printf("%d\n", esn);
      for (int i = 0; i < esn; i++) {
        printf("%d ", vs[i].size());
        for (int j = 0; j < vs[i].size(); j++) printf("%d ", vs[i][j]);
        printf("\n");
        for (int j = 0; j < es[i].size(); j++) printf("%d ", es[i][j]);
        printf("\n");
      }
      printf("%d ", tn);
      for (int i = 0; i < tn; i++) printf("%d ", tt[i]);
      printf("\n");
    } else
      printf("NO\n");
  } else if (cnn != 0) {
    int v, t2;
    if (reV != -1 && cnn - 1 + sn <= m) {
      v = reV, t2 = reE;
    } else if (reV == -1 && cnn - 1 + sn <= m - 1) {
      for (int i = 2; i <= n; i++)
        if (d[i] >= 2) {
          v = i;
          break;
        }
      t2 = edges[head[v]].eidx;
    } else {
      printf("NO\n");
      return 0;
    }
    memset(head, -1, sizeof(head)), ees = 0;
    for (int i = 1; i <= een; i++) {
      if (i != t2) {
        add(ee[i].first, ee[i].second, i);
      }
    }
    memset(vist, 0, sizeof(vist)), memset(isolate, 0, sizeof(isolate)),
        memset(ct, 0, sizeof(ct)), memset(et, 0, sizeof(et)), sn = 0, cnn = 0;
    for (int i = 1; i <= n; i++) d[i] = i;
    swap(d[1], d[v]);
    ini();
    for (int i = 1; i <= n; i++) {
      int u = d[i];
      if (vist[u] == 0) {
        cnt = ent = 0;
        dfs(u);
        if (cnt == 1) {
          isolate[u] = 1;
          if (u != 1) iss[sn++] = i;
        } else
          ct[u] = cnt, et[u] = ent, cnn++;
      }
    }
    vs[vsn++].push_back(1);
    es[esn].push_back(t2), es[esn].push_back(1), es[esn++].push_back(v);
    for (int i = 1; i <= n; i++) {
      if (!isolate[i] && ct[i]) Q.push_back(i);
    }
    for (int i = 0; i < Q.size(); i++) {
      if (Q[i] == v) {
        swap(Q[i], Q[0]);
        break;
      }
    }
    memset(vist, 0, sizeof(vist));
    t1 = 0;
    ini();
    for (int i = 0; i < Q.size(); i++) {
      if (i != (int)Q.size() - 1)
        nxt = Q[i + 1];
      else
        nxt = -1;
      ent = et[Q[i]];
      dfs2(Q[i]);
    }
    printf("YES\n");
    printf("%d\n", esn);
    for (int i = 0; i < esn; i++) {
      printf("%d ", vs[i].size());
      for (int j = 0; j < vs[i].size(); j++) printf("%d ", vs[i][j]);
      printf("\n");
      for (int j = 0; j < es[i].size(); j++) printf("%d ", es[i][j]);
      printf("\n");
    }
    printf("%d ", tn);
    for (int i = 0; i < tn; i++) printf("%d ", tt[i]);
    printf("\n");
  } else {
    if (n != 1)
      printf("NO\n");
    else
      printf("YES\n0\n1 1\n");
  }
  return 0;
}