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 JAVA):

Solution:
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Locale;
import java.util.Queue;
import java.util.Random;
import java.util.StringTokenizer;
import java.util.TreeMap;
import java.util.TreeSet;

public class Solution implements Runnable {

	public static void main(String[] args) {
		(new Thread(new Solution())).start();
	}

	BufferedReader in;
	PrintWriter out;
	StringTokenizer st;

	String nextToken() throws IOException {
		while (st == null || !st.hasMoreTokens()) {
			String r = in.readLine();
			if (r == null) return null;
			st = new StringTokenizer(r);
		}
		return st.nextToken();
	}

	int nextInt() throws IOException {
		return Integer.parseInt(nextToken());
	}

	long nextLong() throws IOException {
		return Long.parseLong(nextToken());
	}

	double nextDouble() throws IOException {
		return Double.parseDouble(nextToken());
	}
	
	class Edge {
		int b, e, n;
		boolean move;
		Edge pr, nt, r;
		Edge(int bb, int ee, int nn, Edge rr, Edge tt) {
			b = bb; e = ee; n = nn; pr = rr; nt = tt;
			r = null;
			move = false;
		}
	}
	
	Edge[] v;
	Edge cycleEdge;
	int[] ss;
	
	Edge addedge(int b, int e, int n) {
		Edge r = new Edge(b, e, n, null, v[b]);
		if (v[b] == null) v[b] = r; else v[b] = v[b].pr = r;
		r = new Edge(e, b, n, null, v[e]);
		if (v[e] == null) v[e] = r; else v[e] = v[e].pr = r; 
		v[b].r = v[e]; v[e].r = v[b];
		if (get(b) != get(e)) uni(b, e); else cycleEdge = v[e];
		ss[b]++; ss[e]++;
		return v[b];
	}
	
	int[] dsu;
	int[] rank;
	Queue<Integer> cc, cp, anss;

	int get(int q) {
		if (dsu[q] != q) return dsu[q] = get(dsu[q]); else return q;
	}
	
	void uni(int a, int b) {
		a = get(a); b = get(b);
		if (rank[a] == rank[b]) rank[a]++;
		if (rank[a] > rank[b]) dsu[b] = a; else dsu[a] = b;
	}
	
	int[] w;
	boolean[] ww;
	
	void ansprint() {
		out.print(anss.size() + " ");
		while (!anss.isEmpty()) out.print(anss.poll() + " ");
		out.println();
	}
	
	void changeEdge(Edge r, int b, int e) {
		if (r.b != b) changeEdge(r.r, b, e); else {
			ansprint();
			out.println(r.n + " " + b + " " + e);
			r.e = e;
			if (r.r.pr == null) {
				v[r.r.b] = r.r.nt; 
			} else {
				r.r.pr.nt = r.r.nt;
			}
			if (r.r.nt != null) r.r.nt.pr = r.r.pr;
			r.r.b = e;
			r.r.nt = v[e];
			r.r.pr = null;
			if (v[e] != null) v[e] = v[e].pr =  r.r; else v[e] = r.r;
			r.move = r.r.move = true;
		}
	}
	
	void dfs(int q, int rr) {
		w[q] = 1;
		ww[get(q)] = true;
		if (q != 1) anss.add(q);
		Queue<Edge> obr = new LinkedList<Edge>();
		for (Edge r = v[q]; r != null; r = r.nt) {
			if (r.n != rr) {
				if (w[r.e] == 0) {
					dfs(r.e, r.n);
					anss.add(q);
				}
				if (!r.move) obr.add(r);
			}
		}
		while (!obr.isEmpty()) {
			int qq = -1;
			while (!cc.isEmpty() && ww[cc.peek()]) cc.poll();
			if (cc.isEmpty()) {
				while (!cp.isEmpty() && ww[cp.peek()]) cp.poll();
				if (!cp.isEmpty()) qq = cp.poll();
			} else qq = cc.poll();
			if (qq == -1) break;
			Edge r = obr.poll();
			changeEdge(r, q, qq);
			dfs(qq, r.n);
			anss.add(q);
		}
		w[q] = 2;
	}
	
	Edge[] edges;
	
	void solve() throws Exception {
		int n = nextInt();
		int m = nextInt();
		if (m == 0) {
			if (n == 1) {
				out.println("YES");
				out.println(0);
				out.println("1 1");
			} else {
				out.println("NO");
			}
			return;
		}
		v = new Edge[n + 1];
		dsu = new int[n + 1];
		rank = new int[n + 1];
		ss = new int[n + 1];
		edges = new Edge[m + 1];
		for (int i = 1; i <= n; i++) dsu[i] = i;
		for (int i = 1; i <= m; i++) {
			edges[i] = addedge(nextInt(), nextInt(), i);
		}
		cc = new LinkedList<Integer>();
		cp = new LinkedList<Integer>();
		int cs = 0;
		for (int i = 1; i <= n; i++)
			if (dsu[i] == i && i != get(1)) {
				cs++;
			}
		if (cs > m || cs == m && cycleEdge == null && ss[1] == 0) {
			out.println("NO");
		} else {
			out.println("YES");
			if (ss[1] == 0 && cycleEdge == null) cs++;
			out.println(cs);
			ww = new boolean[n + 1];
			w = new int[n + 1];
			anss = new LinkedList<Integer>();
			anss.add(1);
			if (ss[1] == 0) {
				if (cycleEdge != null) {
					changeEdge(cycleEdge, cycleEdge.b, 1);
				} else {
					int j = 2;
					while (ss[j] != 1 || ss[v[j].e] == 1) j++;
					changeEdge(v[j], v[j].e, 1);
					cp.add(j);
				}
			}
			for (int i = 1; i <= n; i++) { dsu[i] = i; rank[i] = 0; ss[i] = 0; }
			for (int i = 1; i <= m; i++) {
				int b = edges[i].b;
				int e = edges[i].e;
				if (get(b) != get(e)) uni(b, e); else cycleEdge = v[e];
				ss[b]++; ss[e]++;
			}
			for (int i = 1; i <= n; i++)
				if (dsu[i] == i && i != get(1)) {
					if (rank[i] == 0) cp.add(i); else cc.add(i);
				}
			dfs(1, 0);
			ansprint();
		}
	}
	
	public void run() {
		Locale.setDefault(Locale.UK);
		try {
			in = new BufferedReader(new InputStreamReader(System.in));
			out = new PrintWriter(System.out);
			solve();
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(1);
		} finally {
			out.flush();
		}
	}

}