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;
bool used[100001];
int an[100001], bank[100001], n, m;
vector<int> e[100001], bb[2];
void dfs(int x, int ty) {
  used[x] = 1;
  bank[x] = ty;
  bb[ty].push_back(x);
  for (int i = 0; i < e[x].size(); i++) {
    if (!used[e[x][i]]) dfs(e[x][i], ty ^ 1);
  }
}
void print() {
  for (int i = 0; i < n; i++) {
    if (i) printf(" ");
    printf("%d", an[i]);
  }
  puts("");
}
vector<int> to[100001];
bool tr[100001];
void go2(int x, vector<int>& one, vector<int>& two) {
  sort(e[x].begin(), e[x].end());
  int i, j;
  vector<int> res;
  for (i = j = 0; res.size() < 2; i++, j++) {
    if (i == e[x].size() || e[x][i] != two[j]) {
      res.push_back(two[j]);
      i--;
    }
  }
  tr[x] = 1;
  tr[res[0]] = 1;
  tr[res[1]] = 1;
  an[x] = 1;
  an[res[0]] = 1;
  an[res[1]] = 1;
  puts("YES");
  int No = 2, cnt = 0;
  for (i = 0; i < one.size(); i++) {
    if (tr[one[i]]) continue;
    an[one[i]] = No;
    cnt++;
    if (cnt == 3) {
      cnt = 0;
      No++;
    }
  }
  for (i = 0; i < two.size(); i++) {
    if (tr[two[i]]) continue;
    an[two[i]] = No;
    cnt++;
    if (cnt == 3) {
      cnt = 0;
      No++;
    }
  }
  print();
}
void go(vector<int>& one, vector<int>& two) {
  sort(two.begin(), two.end());
  int i, j;
  for (i = 0; i < one.size(); i++) {
    if (e[one[i]].size() < (int)two.size() - 1) {
      go2(one[i], one, two);
      return;
    } else if (e[one[i]].size() == (int)two.size() - 1) {
      int x = one[i];
      sort(e[x].begin(), e[x].end());
      for (j = 0; j < e[x].size(); j++)
        if (e[x][j] != two[j]) break;
      to[two[j]].push_back(x);
    }
  }
  vector<int> final;
  for (i = 0; i < n && final.size() < 2; i++)
    if (to[i].size() > 1) final.push_back(i);
  if (final.size() < 2)
    puts("NO");
  else {
    puts("YES");
    for (i = 0; i < 2; i++) {
      tr[final[i]] = 1;
      an[final[i]] = i + 1;
      for (j = 0; j < 2; j++) {
        int y = to[final[i]][j];
        an[y] = i + 1;
        tr[y] = 1;
      }
    }
    int No = 3, cnt = 0;
    for (i = 0; i < one.size(); i++) {
      if (tr[one[i]]) continue;
      an[one[i]] = No;
      cnt++;
      if (cnt == 3) {
        cnt = 0;
        No++;
      }
    }
    for (i = 0; i < two.size(); i++) {
      if (tr[two[i]]) continue;
      an[two[i]] = No;
      cnt++;
      if (cnt == 3) {
        cnt = 0;
        No++;
      }
    }
    print();
  }
}
int main() {
  int i, j, k;
  scanf("%d%d", &n, &m);
  while (m--) {
    int x, y;
    scanf("%d%d", &x, &y);
    x--, y--;
    e[x].push_back(y);
    e[y].push_back(x);
  }
  for (i = 0; i < n; i++)
    if (!used[i]) dfs(i, 0);
  if (bb[0].size() % 3 == 0) {
    puts("YES");
    int No = 1;
    for (i = 0; i < bb[0].size(); i += 3) {
      an[bb[0][i]] = No;
      an[bb[0][i + 1]] = No;
      an[bb[0][i + 2]] = No;
      No++;
    }
    for (i = 0; i < bb[1].size(); i += 3) {
      an[bb[1][i]] = No;
      an[bb[1][i + 1]] = No;
      an[bb[1][i + 2]] = No;
      No++;
    }
    print();
  } else {
    if (bb[0].size() % 3 == 1)
      go(bb[0], bb[1]);
    else
      go(bb[1], bb[0]);
  }
  return 0;
}