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

Solution:
#include <bits/stdc++.h>
using namespace std;
struct EDGE {
  int y;
  EDGE* Next;
};
EDGE EPool[222222];
int EPTop = 0;
EDGE* E[111111];
int Deg[111111];
int insert_edge(int x, int y) {
  EDGE* Now = &EPool[EPTop++];
  Now->y = y;
  Now->Next = E[x];
  E[x] = Now;
  Deg[x]++;
  return 0;
}
int L[111111];
int R[111111];
int side[111111];
int dfs(int x, int v) {
  if (side[x] != -1) return 0;
  side[x] = v;
  for (EDGE* e = E[x]; e; e = e->Next) dfs(e->y, !v);
  return 0;
}
int deputy[111111];
int mark_deputy(int* LL, int* RR, int lcnt, int rcnt, int idx) {
  for (int i = 0; i < lcnt; i++)
    if (deputy[LL[i]] == -1) deputy[LL[i]] = (idx++) / 3;
  for (int i = 0; i < rcnt; i++)
    if (deputy[RR[i]] == -1) deputy[RR[i]] = (idx++) / 3;
  return 0;
}
bool conn[111111];
bool find_city(int* LL, int* RR, int lcnt, int rcnt, int& c1, int& c2, int& c3,
               int ignore = -1) {
  c1 = c2 = c3 = -1;
  for (int i = 0; i < lcnt; i++) {
    int x = LL[i];
    if (x == ignore || Deg[x] > rcnt - 2) continue;
    memset(conn, 0, sizeof(conn));
    for (EDGE* e = E[x]; e; e = e->Next) conn[e->y] = true;
    c1 = x;
    for (int j = 0; j < rcnt; j++) {
      if (!conn[RR[j]]) {
        if (c2 == -1)
          c2 = RR[j];
        else
          c3 = RR[j];
      }
    }
    break;
  }
  return c1 != -1;
}
bool try_to_solve(int lcnt, int rcnt) {
  memset(deputy, -1, sizeof(deputy));
  if (lcnt % 3 == 0 && rcnt % 3 == 0) {
    mark_deputy(L, R, lcnt, rcnt, 0);
    return true;
  }
  int* LL = L;
  int* RR = R;
  if (lcnt % 3 == 2) {
    swap(LL, RR);
    swap(lcnt, rcnt);
  }
  int c[6] = {0};
  if (find_city(LL, RR, lcnt, rcnt, c[0], c[1], c[2])) {
    for (int i = 0; i < 3; i++) deputy[c[i]] = 0;
    mark_deputy(LL, RR, lcnt, rcnt, 1 * 3);
    return true;
  }
  if (find_city(RR, LL, rcnt, lcnt, c[0], c[1], c[2])) {
    if (find_city(RR, LL, rcnt, lcnt, c[3], c[4], c[5], c[0])) {
      for (int i = 0; i < 6; i++) deputy[c[i]] = i / 3;
      mark_deputy(LL, RR, lcnt, rcnt, 2 * 3);
      return true;
    }
  }
  return false;
}
int main(void) {
  int n = 0;
  int m = 0;
  scanf("%d %d", &n, &m);
  for (int i = 0; i < m; i++) {
    int x = 0;
    int y = 0;
    scanf("%d %d", &x, &y);
    insert_edge(x, y);
    insert_edge(y, x);
  }
  memset(side, -1, sizeof(side));
  for (int i = 1; i <= n; i++) dfs(i, 0);
  int lcnt = 0;
  int rcnt = 0;
  for (int i = 1; i <= n; i++) {
    if (!side[i])
      L[lcnt++] = i;
    else
      R[rcnt++] = i;
  }
  if (try_to_solve(lcnt, rcnt)) {
    puts("YES");
    for (int i = 1; i <= n; i++) printf("%d ", deputy[i] + 1);
    putchar('\n');
  } else
    puts("NO");
  return 0;
}