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;
inline int read() {
  int x = 0, c = getchar(), f = 0;
  for (; c > '9' || c < '0'; f = c == '-', c = getchar())
    ;
  for (; c >= '0' && c <= '9'; x = (x << 1) + (x << 3) + c - '0', c = getchar())
    ;
  return f ? -x : x;
}
inline void write(int x) {
  if (x < 0) putchar('-'), x = -x;
  if (x >= 10) write(x / 10);
  putchar(x % 10 + 48);
}
const int N = 100000 + 10;
int n, m, cnt, layer[N], leader[N], q[N];
bool vis1[N], vis2[N], vis3[N * 2];
vector<vector<int> > ans;
vector<int> tmp, _;
vector<pair<int, int> > comp;
vector<pair<int, int> > e[N];
void dfs(int u, int fa, int lineid) {
  vis1[u] = 1;
  vis2[layer[u]] = 1;
  tmp.push_back(u);
  int v, id;
  for (int i = (int)0; i <= (int)e[u].size() - 1; i++)
    if ((id = e[u][i].second) != lineid) {
      if (!vis1[v = e[u][i].first]) {
        dfs(v, u, id);
        tmp.push_back(u);
        for (; cnt >= 0 && vis2[comp[cnt].second]; cnt--)
          ;
        if (cnt >= 0) {
          vis3[id] = 1;
          v = leader[comp[cnt].second];
          ans.push_back(tmp);
          tmp.clear();
          _.clear();
          _.push_back(id);
          _.push_back(u);
          _.push_back(v);
          ans.push_back(_);
          dfs(v, u, id);
          tmp.push_back(u);
        }
      } else {
        if (vis3[id]) continue;
        for (; cnt >= 0 && vis2[comp[cnt].second]; cnt--)
          ;
        if (cnt >= 0) {
          vis3[id] = 1;
          v = leader[comp[cnt].second];
          ans.push_back(tmp);
          tmp.clear();
          _.clear();
          _.push_back(id);
          _.push_back(u);
          _.push_back(v);
          ans.push_back(_);
          dfs(v, u, id);
          tmp.push_back(u);
        }
      }
    }
}
void print() {
  puts("YES");
  write(ans.size() / 2);
  puts("");
  for (int i = (int)0; i <= (int)ans.size() - 1; i++) {
    if (i & 1)
      write(ans[i][0] + 1), putchar(' '), write(ans[i][1] + 1), putchar(' '),
          write(ans[i][2] + 1), puts("");
    else {
      write(ans[i].size());
      for (int j = (int)0; j <= (int)ans[i].size() - 1; j++)
        putchar(' '), write(ans[i][j] + 1);
      puts("");
    }
  }
}
int findbridge() {
  for (int i = (int)1; i <= (int)n - 1; i++) vis1[i] = 0;
  for (int i = (int)0; i <= (int)m - 1; i++) vis3[i] = 0;
  for (int i = (int)1; i <= (int)n - 1; i++)
    if (!vis1[i]) {
      q[*q = 1] = i;
      vis1[i] = 1;
      for (int j = (int)1; j <= (int)*q; j++) {
        int u = q[j], v, id;
        for (int k = (int)0; k <= (int)e[u].size() - 1; k++)
          if (!vis3[id = e[u][k].second]) {
            vis3[id] = 1;
            if (vis1[v = e[u][k].first])
              return id;
            else
              vis1[v] = 1, q[++*q] = v;
          }
      }
    }
  return -1;
}
int getblo(int l, int r) {
  for (int i = (int)l; i <= (int)r; i++) vis1[i] = 0;
  int blo = 0;
  comp.clear();
  for (int i = (int)l; i <= (int)r; i++)
    if (!vis1[i]) {
      ++blo;
      q[*q = 1] = i;
      vis1[i] = 1;
      for (int j = (int)1; j <= (int)*q; j++) {
        int u = q[j], v;
        for (int k = (int)0; k <= (int)e[u].size() - 1; k++)
          if (!vis1[v = e[u][k].first]) vis1[v] = 1, q[++*q] = v;
      }
      for (int j = (int)1; j <= (int)*q; j++) layer[q[j]] = blo - 1;
      leader[blo - 1] = q[1];
      comp.push_back(make_pair(*q, blo - 1));
    }
  sort(comp.begin(), comp.end());
  return blo;
}
void go(int id) {
  int u = 0;
  for (int i = (int)1; i <= (int)n - 1; i++) {
    for (int j = (int)0; j <= (int)e[i].size() - 1; j++)
      if (e[i][j].second == id) {
        if (e[i].size() > 1) u = i;
        e[i].erase(e[i].begin() + j, e[i].begin() + j + 1);
        break;
      }
  }
  getblo(1, n - 1);
  cnt = comp.size() - 1;
  for (int i = (int)0; i <= (int)n - 1; i++) vis1[i] = vis2[i] = 0;
  for (int i = (int)0; i <= (int)m - 1; i++) vis3[i] = 0;
  vis1[0] = 1;
  _.clear();
  _.push_back(0);
  ans.push_back(_);
  _.clear();
  _.push_back(id);
  _.push_back(0);
  _.push_back(u);
  ans.push_back(_);
  dfs(u, 0, -1);
  if (tmp.size()) ans.push_back(tmp), tmp.clear();
  print();
}
int main() {
  n = read(), m = read();
  for (int i = (int)0; i <= (int)m - 1; i++) {
    int u = read() - 1, v = read() - 1;
    e[u].push_back(make_pair(v, i));
    e[v].push_back(make_pair(u, i));
  }
  if (n == 1) return puts("YES\n0\n1 1\n"), 0;
  int blo = getblo(0, n - 1);
  if (m < blo - 1) return puts("NO"), 0;
  if (e[0].size()) {
    for (int i = (int)0; i <= (int)n - 1; i++) vis1[i] = vis2[i] = 0;
    for (int i = (int)0; i <= (int)m - 1; i++) vis3[i] = 0;
    cnt = comp.size() - 1;
    dfs(0, -1, -1);
    if (tmp.size()) ans.push_back(tmp), tmp.clear();
    print();
  } else {
    int id = findbridge();
    if (id != -1)
      go(id);
    else {
      if (m < blo)
        puts("NO");
      else {
        for (int i = (int)1; i <= (int)n - 1; i++)
          if (e[i].size() > 1) {
            id = e[i][0].second;
            break;
          }
        if (id != -1)
          go(id);
        else
          puts("NO");
      }
    }
  }
}