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;
constexpr int maxn = 400000 + 10;
int lnk[maxn], nxt[maxn], son[maxn], n, m, now, c1, c2, dnt[maxn], mk;
vector<int> nvis[maxn], rt, rv;
vector<vector<int> > res;
bool flag[maxn];
pair<int, int> cnt[maxn];
bool cmp(const int a, const int b) __attribute__((always_inline));
void dfs(int u) {
  flag[u] = 1;
  for (int v = son[u]; v; v = nxt[v])
    if (lnk[v] > 0) {
      lnk[v ^ 1] *= -1;
      if (!flag[lnk[v]])
        dfs(lnk[v]), c2++;
      else
        lnk[v] = lnk[v ^ 1] = 0, nvis[u].push_back(v / 2),
        rt[rt.size() - 1] = u, c1++;
    }
}
void efs(int u) {
  dnt[u] = 1;
  for (int v = son[u]; v; v = nxt[v])
    if (lnk[v] > 0) {
      efs(lnk[v]);
      dnt[u] += dnt[lnk[v]];
      if (dnt[lnk[v]] == 1) mk = u;
    }
}
void go(int u) {
  for (int v = son[u]; v; v = nxt[v])
    if (lnk[v]) {
      if (lnk[v] < 0) lnk[v] *= -1;
      lnk[v ^ 1] = 0;
      rv.push_back(lnk[v]);
      go(lnk[v]);
      rv.push_back(u);
      if (now < rt.size()) {
        res.push_back(rv);
        rv.resize(3);
        rv[0] = v / 2;
        rv[1] = u;
        rv[2] = rt[now++];
        res.push_back(rv);
        rv.resize(1);
        rv[0] = rt[now - 1];
        go(rt[now - 1]);
        rv.push_back(u);
      }
    }
  for (int i = 0; i < nvis[u].size(); i++)
    if (now < rt.size()) {
      res.push_back(rv);
      rv.resize(3);
      rv[0] = nvis[u][i];
      rv[1] = u;
      rv[2] = rt[now++];
      res.push_back(rv);
      rv.resize(1);
      rv[0] = rt[now - 1];
      go(rt[now - 1]);
      rv.push_back(u);
    } else
      break;
}
bool cmp(const int a, const int b) {
  return (a == 1 || (b != 1 && cnt[a] > cnt[b]));
}
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 0, j = 1, u, v; i < m; i++) {
    scanf("%d%d", &u, &v);
    lnk[++j] = v;
    nxt[j] = son[u];
    son[u] = j;
    lnk[++j] = u;
    nxt[j] = son[v];
    son[v] = j;
  }
  for (int i = 1; i <= n; i++)
    if (!flag[i]) {
      c1 = c2 = 0;
      rt.push_back(i);
      dfs(i);
      cnt[rt[rt.size() - 1]] = make_pair(c1, c2);
    }
  rt[0] = 1;
  sort(rt.begin(), rt.end(), cmp);
  for (int i = 1; i < rt.size(); i++) {
    mk = rt[i];
    efs(rt[i]);
    if (!nvis[rt[i]].size()) rt[i] = mk;
  }
  while (now < rt.size()) {
    if (now) {
      int k = -1;
      if (nvis[rt[now]].size()) {
        k = nvis[rt[now]][nvis[rt[now]].size() - 1];
        nvis[rt[now]].pop_back();
      } else {
        for (int i = son[rt[now]]; i; i = nxt[i])
          if (lnk[i] > 0 && dnt[lnk[i]] == 1) {
            k = i / 2;
            rt.push_back(abs(lnk[i]));
            lnk[i] = lnk[i ^ 1] = 0;
            break;
          }
      }
      if (k == -1) break;
      rv.resize(3);
      rv[0] = k;
      rv[1] = 1;
      rv[2] = rt[now];
      res.push_back(rv);
      rv.clear();
    }
    rv.push_back(rt[now++]);
    go(rt[now - 1]);
    if (rv[rv.size() - 1] != 1) rv.push_back(1);
    res.push_back(rv);
  }
  if (now < rt.size()) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
  printf("%d\n", res.size() / 2);
  for (int i = 0; i < res.size(); i++)
    if (!(i & 1)) {
      printf("%d", res[i].size());
      for (int j = 0; j < res[i].size(); j++) printf(" %d", res[i][j]);
      printf("\n");
    } else
      printf("%d %d %d\n", res[i][0], res[i][1], res[i][2]);
}