Problem: The Trinitarian kingdom has exactly n = 3k cities. All of them are located on the shores of river Trissisipi, which flows through the whole kingdom. Some of the cities are located on one side of the river, and all the rest are on the other side.

Some cities are connected by bridges built between them. Each bridge connects two cities that are located on the opposite sides of the river. Between any two cities exists no more than one bridge.

The recently inaugurated King Tristan the Third is busy distributing his deputies among cities. In total there are k deputies and the king wants to commission each of them to control exactly three cities. However, no deputy can be entrusted to manage the cities, which are connected by a bridge — the deputy can set a too high fee for travelling over the bridge to benefit his pocket, which is bad for the reputation of the king.

Help King Tristan the Third distribute the deputies between the cities, if it is possible.

Input

The first line contains two integers n and m — the number of cities and bridges (3 ≤ n < 105, n = 3k, 0 ≤ m ≤ 105). Next m lines describe the bridges. The i-th line contains two integers ai and bi — the numbers of cities that are connected by the i-th bridge (1 ≤ ai, bi ≤ n, ai ≠ bi, 1 ≤ i ≤ m).

It is guaranteed that no bridge connects a city with itself and that any two cities are connected with no more than one bridge.

Output

If distributing the deputies in the required manner is impossible, print in a single line "NO" (without the quotes).

Otherwise, in the first line print "YES" (without the quotes), and in the second line print which deputy should be put in charge of each city. The i-th number should represent the number of the deputy (from 1 to k), who should be in charge of city numbered i-th in the input — overall there should be n numbers.

If there are multiple solutions, print any of them.

Examples

Input

6 6
1 2
4 1
3 5
6 5
2 6
4 6


Output

YES
1 2 1 2 2 1 

Input

3 1
1 2


Output

NO

Solution (in JAVA):

Solution:
import java.io.*;
import java.math.*;
import java.util.*;

public class Solution implements Runnable {

	int n, m, k;
	ArrayList<Integer>[] graph;
	ArrayList<Integer> first, second;
	boolean[] visited;
	
	void solve() throws Exception {
		n = nextInt();
		k = n / 3;
		m = nextInt();
		graph = new ArrayList[n];
		for (int i = 0; i < n; ++i) {
			graph[i] = new ArrayList<Integer>();
		}
		for (int i = 0; i < m; ++i) {
			int a = nextInt() - 1, b = nextInt() - 1;
			graph[a].add(b);
			graph[b].add(a);
		}
		first = new ArrayList<Integer>();
		second = new ArrayList<Integer>();
		visited = new boolean[n];
		for (int i = 0; i < n; ++i) {
			if (!visited[i]) {
				dfs(i, true);
			}
		}
		int[] ans = new int[n];
		int left;
		int cur = 1;
		if (first.size() % 3 != 0) {
			if (first.size() % 3 != 1) {
				ArrayList<Integer> tmp = first;
				first = second;
				second = tmp;
			}
			boolean canDo = false;
			int ind = -1;
			for (int f : first) {
				if (graph[f].size() < second.size() - 1) {
					canDo = true;
					ind = f;
				}
			}
			//System.out.println(canDo);
			if (!canDo) {
				int otherCnt = 0;
				for (int s : second) {
					if (graph[s].size() < first.size() - 1) {
						++otherCnt;
					}
				}
				if (otherCnt < 2) {
					out.print("NO");
					return;
				} else {
					int tt = 2;
					for (int s : second) {
						if (graph[s].size() < first.size() - 1) {
							Arrays.fill(visited, false);
							ans[s] = cur;
							for (int o : second) {
								visited[o] = true;
							}
							for (int o : graph[s]) {
								visited[o] = true;
							}
							left = 2;
							for (int i = 0; i < n && left > 0; ++i) {
								if (!visited[i]) {
									ans[i] = cur;
									--left;
								}
							}
							++cur;
							--tt;
							if (tt == 0) {
								break;
							}
						}
					}
					//System.err.println("!!");
				}
			} else {
				Arrays.fill(visited, false);
				for (int f : first) {
					visited[f] = true;
				}
				for (int o : graph[ind]) {
					visited[o] = true;
				}
				ans[ind] = cur;
				left = 2;
				for (int i = 0; i < n && left > 0; ++i) {
					if (!visited[i]) {
						ans[i] = cur;
						--left;
					}
				}
				++cur;
			}
		}
		left = 3;
		for (int f : first) {
			if (ans[f] == 0) {
				ans[f] = cur;
				--left;
				if (left == 0) {
					left = 3;
					++cur;
				}
			}
		}
		for (int f : second) {
			if (ans[f] == 0) {
				ans[f] = cur;
				--left;
				if (left == 0) {
					left = 3;
					++cur;
				}
			}
		}
		out.println("YES");
		for (int i = 0; i < n; ++i) {
			out.print(ans[i] + " ");
		}
	}
	
	void dfs(int v, boolean isFirst) {
		visited[v] = true;
		if (isFirst) {
			first.add(v);
		} else {
			second.add(v);
		}
		for (int o : graph[v]) {
			if (!visited[o]) {
				dfs(o, !isFirst);
			}
		}
	}
	
	public void run() {
		try {
			solve();
		} catch (Exception e) {
			NOO(e);
		} finally {
			out.close();
		}
	}
	
	long nextLong() {
		return Long.parseLong(nextToken());
	}
	
	double nextDouble() {
		return Double.parseDouble(nextToken());
	}
	
	int nextInt() {
		return Integer.parseInt(nextToken());
	}
	
	String nextToken() {
		while (!stringTokenizer.hasMoreTokens()) {
			String line = null;
			try {
				line = in.readLine();
			} catch (IOException e) {
				NOO(e);
			}
			if (line == null) {
				return null;
			}
			stringTokenizer = new StringTokenizer(line);
		}
		return stringTokenizer.nextToken();
	}
	
	BufferedReader in;
	PrintWriter out;
	StringTokenizer stringTokenizer;
	
	void NOO(Exception e) {
		e.printStackTrace();
		System.exit(42);
	}
	
	public Solution(String name) {
		try {
			in = new BufferedReader(new FileReader("input.txt"));
			out = new PrintWriter(new FileWriter("output.txt"));
			stringTokenizer = new StringTokenizer("");
		} catch (Exception e) {
			NOO(e);
		}
	}
	
	public Solution() {
		try {
			in = new BufferedReader(new InputStreamReader(System.in));
			out = new PrintWriter(System.out);
			stringTokenizer = new StringTokenizer("");
		} catch (Exception e) {
			NOO(e);
		}
	}
	
	public static void main(String[] args) {
		Locale.setDefault(Locale.US);
		new Solution().run();
	}
}