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.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.StreamTokenizer;
import java.util.Arrays;

public class D173 {

    static StreamTokenizer in = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
    static PrintWriter out = new PrintWriter(System.out);
    
    static int nextInt() throws Exception {
        in.nextToken();
        return (int)in.nval;
    }
    
    static String nextString() throws Exception {
        in.nextToken();
        return in.sval;
    }
    
    public static void main(String[] args) throws Exception {
        int n = nextInt(), m = nextInt();
        int[][] e = new int[m][2];

        deg = new int[n];
        for (int i = 0; i < m; i++) {
            int a = nextInt()-1, b = nextInt()-1;
            deg[a]++;
            deg[b]++;
            e[i][0] = a;
            e[i][1] = b;
        }
        
        v = new int[n][];
        for (int i = 0; i < n; i++) {
            v[i] = new int[deg[i]];
            deg[i] = 0;
        }
        for (int i = 0; i < m; i++) {
            v[e[i][0]][deg[e[i][0]]++] = e[i][1];
            v[e[i][1]][deg[e[i][1]]++] = e[i][0];
        }
        
        side = new int[n];
        Arrays.fill(side, -1);
        for (int i = 0; i < n; i++) {
            if (side[i] == -1) {
                go(i, 0);
            }
        }
        
        cnt = new int[2];
        for (int i = 0; i < n; i++) cnt[side[i]]++;
        assign = new int[n];
        
        k = 1;
        q = 3;
        if (cnt[0]%3 == 0 && cnt[1]%3 == 0) {
            assignSide(0);
            assignSide(1);
        }
        else if (cnt[0]%3 == 1 && cnt[1]%3 == 2) {
            int cand = -1;
            for (int i = 0; i < n; i++) {
                if (side[i] == 0 && deg[i] <= cnt[1] - 2) {
                    cand = i;
                    break;
                }
            }
            if (cand != -1) {
                assignCity(cand);
                assignSide(0);
                assignSide(1);
            }
            else {
                int cand1 = -1;
                for (int i = 0; i < n; i++) {
                    if (side[i] == 1 && deg[i] <= cnt[0] - 2) {
                        cand1 = i;
                        break;
                    }
                }
                if (cand1 == -1) {
                    out.println("NO");
                    out.flush();
                    return;
                }
                assignCity(cand1);
                int cand2 = -1;
                for (int i = 0; i < n; i++) {
                    if (side[i] == 1 && assign[i] == 0 && deg[i] <= cnt[0] - 2) {
                        cand2 = i;
                        break;
                    }
                }
                if (cand2 == -1) {
                    out.println("NO");
                    out.flush();
                    return;
                }
                assignCity(cand2);
                assignSide(0);
                assignSide(1);
            }
        }
        else if (cnt[0]%3 == 2 && cnt[1]%3 == 1) {
            int cand = -1;
            for (int i = 0; i < n; i++) {
                if (side[i] == 1 && deg[i] <= cnt[0] - 2) {
                    cand = i;
                    break;
                }
            }
            if (cand != -1) {
                assignCity(cand);
                assignSide(0);
                assignSide(1);
            }
            else {
                int cand1 = -1;
                for (int i = 0; i < n; i++) {
                    if (side[i] == 0 && deg[i] <= cnt[1] - 2) {
                        cand1 = i;
                        break;
                    }
                }
                if (cand1 == -1) {
                    out.println("NO");
                    out.flush();
                    return;
                }
                assignCity(cand1);
                int cand2 = -1;
                for (int i = 0; i < n; i++) {
                    if (side[i] == 0 && assign[i] == 0 && deg[i] <= cnt[1] - 2) {
                        cand2 = i;
                        break;
                    }
                }
                if (cand2 == -1) {
                    out.println("NO");
                    out.flush();
                    return;
                }
                assignCity(cand2);
                assignSide(0);
                assignSide(1);
            }
        }
        
        out.println("YES");
        for (int i = 0; i < n; i++) {
            out.print(assign[i] + " ");
        }
        out.println();
        out.flush();
    }

    static int[] deg, side, assign, cnt;
    static int[][] v;
    static int k, q;
    
    static void go(int x, int s) {
        if (side[x] == -1) {
            side[x] = s;
            for (int u : v[x]) {
                go(u, s^1);
            }
        }
    }
    
    static void assignSide(int x) {
        for (int i = 0; i < side.length; i++) {
            if (side[i] == x && assign[i] == 0) {
                assign[i] = k;
                q--;
                if (q == 0) {
                    q = 3;
                    k++;
                }
            }
        }
    }
    
    static void assignCity(int x) {
        assign[x] = k;
        q--;
        boolean[] b = new boolean[side.length];
        for (int u : v[x]) b[u] = true;
        for (int i = 0; i < side.length; i++) {
            if (!b[i] && side[i] != side[x]) {
                assign[i] = k;
                q--;
                if (q == 0) {
                    k++;
                    q = 3;
                    break;
                }
            }
        }
    }
}