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.InputStreamReader;
import java.io.IOException;
import java.util.Arrays;
import java.io.BufferedReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
	public static void main(String[] args) {
		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		InputReader in = new InputReader(inputStream);
		PrintWriter out = new PrintWriter(outputStream);
		TaskD solver = new TaskD();
		solver.solve(1, in, out);
		out.close();
	}
}

class TaskD {
    int[] nextEdge;
    int[] destEdge;
    int[] firstEdge;
    int[] color;
    
	public void solve(int testNumber, InputReader in, PrintWriter out) {
        int n = in.nextInt();
        int m = in.nextInt();
        nextEdge = new int[2 * m];
        destEdge = new int[2 * m];
        firstEdge = new int[n];
        Arrays.fill(firstEdge, -1);
        for (int i = 0; i < m; ++i) {
            int a = in.nextInt() - 1;
            int b = in.nextInt() - 1;
            destEdge[i * 2] = b;
            nextEdge[i * 2] = firstEdge[a];
            firstEdge[a] = i * 2;
            destEdge[i * 2 + 1] = a;
            nextEdge[i * 2 + 1] = firstEdge[b];
            firstEdge[b] = i * 2 + 1;
        }
        color = new int[n];
        Arrays.fill(color, -1);
        for (int i = 0; i < n; ++i)
            if (color[i] < 0)
                colorIt(i, 0);
        int[] cnt = new int[2];
        for (int i = 0; i < n; ++i) ++cnt[color[i]];
        int[] res = new int[n];
        int who = 1;
        if (cnt[0] % 3 == 0) {
        } else {
            if (cnt[0] % 3 == 2) {
                for (int i = 0; i < n; ++i) color[i] = 1 - color[i];
                int tmp = cnt[0];
                cnt[0] = cnt[1];
                cnt[1] = tmp;
            }
            int[] deg = new int[n];
            for (int i = 0; i < n; ++i) {
                int e = firstEdge[i];
                while (e >= 0) {
                    ++deg[i];
                    e = nextEdge[e];
                }
            }
            boolean ok = false;
            for (int i = 0; i < n; ++i)
                if (color[i] == 0 && deg[i] <= cnt[1] - 2) {
                    ok = true;
                    boolean[] mark = new boolean[n];
                    int e = firstEdge[i];
                    while (e >= 0) {
                        mark[destEdge[e]] = true;
                        e = nextEdge[e];
                    }
                    color[i] = 2;
                    res[i] = 1;
                    int left = 2;
                    for (int j = 0; j < n; ++j)
                        if (color[j] == 1 && !mark[j]) {
                            color[j] = 2;
                            res[j] = 1;
                            --left;
                            if (left == 0) break;
                        }
                    ++who;
                    break;
                }
            if (!ok) {
                for (int i = 0; i < n; ++i)
                    if (color[i] == 1 && deg[i] <= cnt[0] - 2) {
                        for (int k = i + 1; k < n; ++k)
                            if (color[k] == 1 && deg[k] <= cnt[0] - 2) {
                                ok = true;
                                {
                                    boolean[] mark = new boolean[n];
                                    int e = firstEdge[i];
                                    while (e >= 0) {
                                        mark[destEdge[e]] = true;
                                        e = nextEdge[e];
                                    }
                                    color[i] = 2;
                                    res[i] = who;
                                    int left = 2;
                                    for (int j = 0; j < n; ++j)
                                        if (color[j] == 0 && !mark[j]) {
                                            color[j] = 2;
                                            res[j] = who;
                                            --left;
                                            if (left == 0) break;
                                        }
                                    ++who;                                    
                                }
                                {
                                    boolean[] mark = new boolean[n];
                                    int e = firstEdge[k];
                                    while (e >= 0) {
                                        mark[destEdge[e]] = true;
                                        e = nextEdge[e];
                                    }
                                    color[k] = 2;
                                    res[k] = who;
                                    int left = 2;
                                    for (int j = 0; j < n; ++j)
                                        if (color[j] == 0 && !mark[j]) {
                                            color[j] = 2;
                                            res[j] = who;
                                            --left;
                                            if (left == 0) break;
                                        }
                                    ++who;
                                }                                
                                break;
                            }
                        break;
                    }
                if (!ok) {
                    out.println("NO");
                    return;
                }
            }
        }
        {
            int left = 3;
            for (int i = 0; i < n; ++i) if (color[i] == 0) {
                res[i] = who;
                --left;
                if (left == 0) {
                    ++who;
                    left = 3;
                }
            }
            for (int i = 0; i < n; ++i) if (color[i] == 1) {
                res[i] = who;
                --left;
                if (left == 0) {
                    ++who;
                    left = 3;
                }
            }
        }
        out.println("YES");
        for (int i = 0; i < n; ++i) {
            if (i > 0) out.print(" ");
            out.print(res[i]);
        } 
        out.println();
	}

    private void colorIt(int at, int col) {
        if (color[at] >= 0) {
            if (color[at] != col) throw new RuntimeException();
            return;
        }
        color[at] = col;
        int e = firstEdge[at];
        while (e >= 0) {
            colorIt(destEdge[e], 1 - col);
            e = nextEdge[e];
        }
    }
}

class InputReader {
    private BufferedReader reader;
    private StringTokenizer tokenizer;

    public InputReader(InputStream stream) {
        reader = new BufferedReader(new InputStreamReader(stream));
        tokenizer = null;
    }

    public String next() {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            try {
                tokenizer = new StringTokenizer(reader.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return tokenizer.nextToken();
    }

    public int nextInt() {
        return Integer.parseInt(next());
    }

    }