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;
int cmp[100010];
int sz[3];
vector<int> E[100010];
int asst[100010];
void assign_all(int N) {
  assert(sz[1] % 3 == 0);
  assert(sz[2] % 3 == 0);
  int k = 1;
  int left = 3;
  for (int j = 1; j <= N; j++) {
    if (cmp[j] != 1) continue;
    asst[j] = k;
    left--;
    if (left == 0) {
      k++;
      left = 3;
    }
  }
  assert(left == 3);
  for (int j = 1; j <= N; j++) {
    if (cmp[j] != 2) continue;
    asst[j] = k;
    left--;
    if (left == 0) {
      k++;
      left = 3;
    }
  }
}
bool good[100010];
void print_all(int N) {
  for (int i = (1); i <= (N); i++) {
    if (i > 1) cout << " ";
    cout << asst[i];
  }
}
void join(int a, int b, int c, int k) {
  assert(a > 0 && b > 0 && c > 0);
  asst[a] = asst[b] = asst[c] = k;
  cmp[a] = cmp[b] = cmp[c] = 0;
}
int main() {
  int N, M;
  cin >> N >> M;
  for (int j = 0; j < M; j++) {
    int a, b;
    cin >> a >> b;
    E[a].push_back(b);
    E[b].push_back(a);
  }
  for (int i = (1); i <= (N); i++) {
    if (cmp[i] == 0) {
      cmp[i] = 1;
      queue<int> Q;
      Q.push(i);
      while (!Q.empty()) {
        int s = Q.front();
        Q.pop();
        int numE = E[s].size();
        for (int x = 0; x < numE; x++) {
          int j = E[s][x];
          if (cmp[j] != 0) continue;
          cmp[j] = 1 + (2 - cmp[s]);
          Q.push(j);
        }
      }
    }
  }
  for (int i = (1); i <= (N); i++) sz[cmp[i]]++;
  if (sz[1] % 3 == 0) {
    cout << "YES" << endl;
    assign_all(N);
    print_all(N);
    return 0;
  } else {
    if (sz[1] % 3 == 2) {
      swap(sz[1], sz[2]);
      for (int i = (1); i <= (N); i++) cmp[i] = 3 - cmp[i];
    }
    for (int i = (1); i <= (N); i++) {
      if (cmp[i] == 2) continue;
      if (E[i].size() <= (sz[2] - 2)) {
        cout << "YES" << endl;
        memset(good, true, sizeof(good));
        int numE = E[i].size();
        for (int x = 0; x < numE; x++) good[E[i][x]] = false;
        int a = -1;
        int b = -1;
        for (int j = (1); j <= (N); j++) {
          if (good[j] && (cmp[j] != cmp[i])) {
            b = a;
            a = j;
          }
        }
        join(i, a, b, (N + 2) / 3);
        sz[1]--;
        sz[2] -= 2;
        assign_all(N);
        print_all(N);
        return 0;
      }
    }
    int num_found = 0;
    for (int s = 0; s < 2; s++) {
      for (int i = (1); i <= (N); i++) {
        if (cmp[i] != 2) continue;
        if (E[i].size() >= (sz[1] - 1)) continue;
        memset(good, true, sizeof(good));
        int numE = E[i].size();
        for (int x = 0; x < numE; x++) good[E[i][x]] = false;
        int a = -1;
        int b = -1;
        for (int j = (1); j <= (N); j++) {
          if (good[j] && (cmp[j] == 1)) {
            b = a;
            a = j;
          }
        }
        join(i, a, b, (N + 2 - 3 * s) / 3);
        num_found++;
        break;
      }
    }
    sz[1] -= 4;
    sz[2] -= 2;
    if (num_found < 2) {
      cout << "NO" << endl;
      return 0;
    } else {
      cout << "YES" << endl;
      assign_all(N);
      print_all(N);
      return 0;
    }
  }
  cout << "NO" << endl;
}