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 nextInt() {
  int x;
  scanf("%d", &x);
  return x;
}
long long nextLong() {
  long long x;
  scanf("%I64d", &x);
  return x;
}
double nextDouble() {
  double x;
  scanf("%lf", &x);
  return x;
}
const int BUFSIZE = 1000000;
char buf[BUFSIZE + 1];
string nextString() {
  scanf("%s", buf);
  return buf;
}
struct Point {
  double x, y;
  Point() : x(0), y(0) {}
  Point(double x, double y) : x(x), y(y) {}
  Point operator-(Point op) const { return Point(x - op.x, y - op.y); }
  Point operator+(Point op) const { return Point(x + op.x, y + op.y); }
  Point operator*(double op) const { return Point(x * op, y * op); }
  double operator*(Point op) const { return x * op.x + y * op.y; }
  double operator%(Point op) const { return x * op.y - y * op.x; }
  double length2() { return x * x + y * y; }
  double lengt() { return sqrt(length2()); }
};
Point nextPoint() {
  double x = nextDouble();
  double y = nextDouble();
  return Point(x, y);
}
void dfs(int at, vector<vector<int> > &adj, int c, vector<int> &color) {
  if (color[at] != -1) {
    if (color[at] != c) {
      throw 0;
    }
    return;
  }
  color[at] = c;
  for (int i = 0; i < adj[at].size(); ++i) {
    int to = adj[at][i];
    if (color[to] == -1) {
      dfs(to, adj, c ^ 1, color);
    }
  }
}
int main() {
  int n = nextInt();
  int m = nextInt();
  int k = n / 3;
  vector<vector<int> > adj(n);
  for (int i = 0; i < m; ++i) {
    int x = nextInt() - 1;
    int y = nextInt() - 1;
    adj[x].push_back(y);
    adj[y].push_back(x);
  }
  vector<int> color(n, -1);
  for (int i = 0; i < n; ++i) {
    if (color[i] == -1) {
      dfs(i, adj, 0, color);
    }
  }
  int nx = 0;
  int ny = 0;
  for (int i = 0; i < color.size(); ++i) {
    (color[i] == 0 ? nx : ny) += 1;
  }
  if (nx % 3 == 2) {
    swap(nx, ny);
    for (int i = 0; i < color.size(); ++i) {
      color[i] ^= 1;
    }
  }
  vector<int> res(n, -1);
  int nr = 0;
  if (nx % 3 == 1) {
    int x = -1;
    int y1 = -1;
    int y2 = -1;
    for (int i = 0; i < color.size(); ++i) {
      if (color[i] == 0 && adj[i].size() <= ny - 2) {
        x = i;
        set<int> used(adj[i].begin(), adj[i].end());
        for (int j = 0; j < color.size(); ++j) {
          if (color[j] == 1 && used.find(j) == used.end()) {
            if (y1 == -1) {
              y1 = j;
            } else {
              y2 = j;
              cerr << x << " " << y1 << " " << y2 << endl;
              break;
            }
          }
        }
        break;
      }
    }
    if (y2 == -1) {
      y1 = -1;
      int x1 = -1;
      int x2 = -1;
      int x3 = -1;
      int x4 = -1;
      for (int i = 0; i < color.size(); ++i) {
        if (color[i] == 1 && adj[i].size() <= nx - 2) {
          set<int> used(adj[i].begin(), adj[i].end());
          if (y1 == -1) {
            y1 = i;
          } else {
            y2 = i;
          }
          for (int j = 0; j < color.size(); ++j) {
            if (color[j] == 0 && used.find(j) == used.end()) {
              if (x1 == -1) {
                x1 = j;
              } else if (x2 == -1) {
                x2 = j;
                break;
              } else if (x3 == -1) {
                x3 = j;
              } else if (x4 == -1) {
                x4 = j;
                break;
              }
            }
          }
          if (y2 != -1) {
            break;
          }
        }
      }
      if (x4 == -1) {
        printf("NO\n");
        return 0;
      } else {
        res[x1] = 0;
        res[x2] = 0;
        res[y1] = 0;
        ++nr;
        res[x3] = 1;
        res[x4] = 1;
        res[y2] = 1;
        ++nr;
      }
    } else {
      res[x] = 0;
      res[y1] = 0;
      res[y2] = 0;
      ++nr;
    }
  }
  vector<int> q;
  for (int i = 0; i < n; ++i) {
    if (color[i] == 0 && res[i] == -1) {
      q.push_back(i);
    }
  }
  for (int i = 0; i < n; ++i) {
    if (color[i] == 1 && res[i] == -1) {
      q.push_back(i);
    }
  }
  for (int i = 0; i < q.size(); ++i) {
    res[q[i]] = nr;
    if (i % 3 == 2) {
      ++nr;
    }
  }
  printf("YES\n");
  for (int i = 0; i < n; ++i) {
    if (i > 0) {
      printf(" ");
    }
    printf("%d", res[i] + 1);
  }
  printf("\n");
  return 0;
}