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;
#pragma comment(linker, "/stack:16000000")
#pragma warning(disable : 4996)
const int inf = 1 << 25;
const double eps = 1e-9;
const int MAXN = 110000;
struct Edge {
  int u, v;
  bool changed;
  Edge() {}
  Edge(int u, int v) : u(u), v(v), changed(false) {}
};
vector<int> edgeList[MAXN];
vector<Edge> edges;
int n, m;
void AddEdge(int u, int v) {
  int id = edges.size();
  edgeList[u].push_back(id);
  edgeList[v].push_back(id);
  edges.push_back(Edge(u, v));
}
int numComps = 0;
int comp[MAXN];
struct Component {
  int root;
  int numEdges;
  int numV;
  int extraEdge;
  Component() {
    root = numV = numEdges = 0;
    extraEdge = -1;
  }
  bool operator<(const Component& X) const {
    return numEdges - numV > X.numEdges - X.numV ||
           numEdges - numV == X.numEdges - X.numV && numEdges > X.numEdges;
  }
};
vector<Component> components;
void dfs(int u, int peid = -1) {
  comp[u] = numComps;
  int numChildren = 0;
  for (int i = (0); i < ((int)edgeList[u].size()); ++i) {
    int eid = edgeList[u][i];
    if (eid == peid) continue;
    int v = edges[eid].u == u ? edges[eid].v : edges[eid].u;
    if (comp[v] == -1)
      dfs(v, eid), ++numChildren;
    else
      components.back().extraEdge = eid;
  }
  if (numChildren == 0 && peid != -1 && components.back().extraEdge == -1) {
    if (edges[peid].v != u) swap(edges[peid].v, edges[peid].u);
    components.back().extraEdge = peid;
  }
}
vector<vector<int> > moves;
vector<vector<int> > moved_edges;
int nextTraversed = 1;
bool visited[MAXN];
void traverse(int u, int peid = -1) {
  if (visited[u]) throw 0;
  visited[u] = true;
  if (peid == -1) moves.push_back(vector<int>());
  moves.back().push_back(u);
  for (int i = (0); i < ((int)edgeList[u].size()); ++i) {
    int eid = edgeList[u][i];
    if (eid == peid || edges[eid].changed) continue;
    int v = edges[eid].u == u ? edges[eid].v : edges[eid].u;
    if (!visited[v]) {
      traverse(v, eid);
      moves.back().push_back(u);
    }
    if (!edges[eid].changed && nextTraversed < components.size()) {
      edges[eid].changed = true;
      int v = components[nextTraversed].root;
      int a[] = {eid + 1, u, v};
      moved_edges.push_back(vector<int>(a, a + 3));
      ++nextTraversed;
      moves.push_back(vector<int>());
      traverse(v, eid);
      moves.back().push_back(u);
    }
  }
}
int main(int argc, char* argv[]) {
  scanf("%d %d", &n, &m);
  for (int i = (0); i < (m); ++i) {
    int u, v;
    scanf("%d %d", &u, &v);
    AddEdge(u, v);
  }
  memset((comp), (-1), sizeof(comp));
  for (int u = (1); u < (n + 1); ++u)
    if (comp[u] == -1) {
      components.push_back(Component());
      components.back().root = u;
      dfs(u), ++numComps;
    }
  for (int u = (1); u < (n + 1); ++u)
    components[comp[u]].numV++,
        components[comp[u]].numEdges += edgeList[u].size();
  for (int i = (0); i < ((int)components.size()); ++i)
    components[i].numEdges /= 2;
  int startComp = 0;
  if (components.size() > 1) sort(components.begin() + 1, components.end());
  memset((visited), (false), sizeof(visited));
  if (components[0].numV == 1) {
    if (n == 1) {
      printf("YES\n");
      printf("0\n");
      printf("1 1\n");
      return 0;
    }
    if (components[1].extraEdge == -1) {
      printf("NO\n");
      return 0;
    } else {
      moves.push_back(vector<int>(1, 1));
      int eid = components[1].extraEdge;
      int v = edges[eid].u;
      int a[] = {eid + 1, 1, v};
      moved_edges.push_back(vector<int>(a, a + 3));
      startComp = 1;
      components[startComp].root = v;
      visited[1] = true;
      edges[eid].changed = true;
      if (components[1].numV == components[1].numEdges + 1) {
        components.push_back(Component());
        components.back().numV = 1;
        components.back().numEdges = 0;
        components.back().root = edges[eid].v;
      }
    }
  }
  nextTraversed = startComp + 1;
  traverse(components[startComp].root);
  if (count(visited + 1, visited + n + 1, false)) {
    printf("NO\n");
    return 0;
  }
  printf("YES\n");
  cout << moved_edges.size() << endl;
  if (moved_edges.size() == moves.size()) moves.push_back(vector<int>());
  for (int i = (0); i < ((int)moved_edges.size()); ++i) {
    printf("%d ", (int)moves[i].size());
    for (int j = (0); j < ((int)moves[i].size()); ++j) {
      printf("%d ", moves[i][j]);
    }
    printf("\n");
    for (int j = (0); j < ((int)moved_edges[i].size()); ++j) {
      printf("%d ", moved_edges[i][j]);
    }
    printf("\n");
  }
  printf("%d ", (int)moves.back().size());
  for (int i = (0); i < ((int)moves.back().size()); ++i)
    printf("%d ", moves.back()[i]);
  printf("\n");
  return 0;
}