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;
int n, m, k;
bool debug = false;
set<pair<int, int>> mp[100005];
deque<pair<int, int>> components;
pair<int, int> e[100005 * 2];
int moves;
bool bledge[100005 * 2], v[100005];
vector<int> H, tmp;
char obf[10000008];
char *ob = obf;
void oh() {
  ob += sprintf(ob, "%d", (int)H.size());
  for (int i = 0; i < H.size(); i++) ob += sprintf(ob, " %d", H[i]);
  ob += sprintf(ob, "\n");
  H.clear();
}
void ms(int i, int u, int v) {
  oh();
  moves++;
  mp[e[i].first].erase(make_pair(e[i].second, i));
  mp[e[i].second].erase(make_pair(e[i].first, i));
  e[i].first = u;
  e[i].second = v;
  mp[u].insert(make_pair(v, i));
  mp[v].insert(make_pair(u, i));
  ob += sprintf(ob, "%d %d %d\n", i, u, v);
  bledge[i] = 1;
}
bool dfs1(int x, int p, bool toOne) {
  v[x] = 1;
  tmp.push_back(x);
  int id = -1;
  for (set<pair<int, int>>::iterator it = mp[x].begin(); it != mp[x].end();
       it++) {
    if (!toOne && v[(*it).first] && (*it).second != p) {
      toOne = 1;
      id = (*it).second;
    } else if (!v[(*it).first]) {
      toOne = dfs1((*it).first, (*it).second, toOne);
    }
  }
  if (id != -1) {
    ms(id, x, 1);
  }
  return toOne;
}
void dfs2(int x, int p) {
  if (x != 1) H.push_back(x);
  v[x] = 1;
  for (pair<int, int> j : mp[x])
    if (!v[j.first]) {
      dfs2(j.first, j.second);
      H.push_back(x);
    }
  vector<pair<int, int>> pp;
  for (pair<int, int> j : mp[x]) {
    if (!bledge[j.second] && !components.empty() && j.second != p) {
      pp.push_back(make_pair(j.second, components.back().second));
      components.pop_back();
    }
  }
  for (pair<int, int> j : pp) {
    ms(j.first, x, j.second);
    dfs2(j.second, j.first);
    H.push_back(x);
  }
}
int main() {
  scanf("%d%d", &n, &m);
  int a, b;
  for (int i = 1; i <= m; i++) {
    scanf("%d%d", &a, &b);
    mp[a].insert(make_pair(b, i));
    mp[b].insert(make_pair(a, i));
    e[i] = make_pair(a, b);
  }
  H.push_back(1);
  for (int i = 1; i <= n; i++)
    if (!v[i]) {
      bool b = dfs1(i, -1, i == 1);
      if (!b) {
        for (int j : tmp)
          if (mp[j].size() <= 1) {
            components.push_back(make_pair(tmp.size(), j));
            break;
          }
      }
      tmp.clear();
    }
  sort(components.begin(), components.end());
  memset(v, 0, sizeof v);
  dfs2(1, -1);
  while (!components.empty() && components.back().first > 1) {
    k = components.back().second;
    components.push_front(make_pair(1, k));
    components.pop_back();
    pair<int, int> pp = *mp[k].begin();
    ms(pp.second, 1, pp.first);
    dfs2(pp.first, pp.second);
    H.push_back(1);
  }
  oh();
  if (!components.empty())
    puts("NO");
  else {
    puts("YES");
    printf("%d\n", moves);
    printf("%s", obf);
  }
  return 0;
}