Problem: Dima came to the horse land. There are n horses living in the land. Each horse in the horse land has several enemies (enmity is a symmetric relationship). The horse land isn't very hostile, so the number of enemies of each horse is at most 3.

Right now the horse land is going through an election campaign. So the horses trusted Dima to split them into two parts. At that the horses want the following condition to hold: a horse shouldn't have more than one enemy in its party.

Help Dima split the horses into parties. Note that one of the parties can turn out to be empty.

Input

The first line contains two integers n, m <image> — the number of horses in the horse land and the number of enemy pairs.

Next m lines define the enemy pairs. The i-th line contains integers ai, bi (1 ≤ ai, bi ≤ n; ai ≠ bi), which mean that horse ai is the enemy of horse bi.

Consider the horses indexed in some way from 1 to n. It is guaranteed that each horse has at most three enemies. No pair of enemies occurs more than once in the input.

Output

Print a line, consisting of n characters: the i-th character of the line must equal "0", if the horse number i needs to go to the first party, otherwise this character should equal "1".

If there isn't a way to divide the horses as required, print -1.

Examples

Input

3 3
1 2
3 2
3 1


Output

100


Input

2 1
2 1


Output

00


Input

10 6
1 2
1 3
1 4
2 3
2 4
3 4


Output

0110000000

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
template <class T>
inline T checkmin(T &a, T b) {
  return (a < b) ? a : a = b;
}
template <class T>
inline T checkmax(T &a, T b) {
  return (a > b) ? a : a = b;
}
template <class T>
T GCD(T a, T b) {
  if (a < 0) return GCD(-a, b);
  if (b < 0) return GCD(a, -b);
  return (a == 0) ? b : GCD(b % a, a);
}
template <class T>
T LCM(T a, T b) {
  if (a < 0) return LCM(-a, b);
  if (b < 0) return LCM(a, -b);
  return (a == 0 || b == 0) ? 0 : a / GCD(a, b) * b;
}
template <class T>
inline T sqr(T X) {
  return X * X;
}
namespace Poor {
const int MaxiN = 300005;
int N, M;
int Pa[MaxiN], Color[MaxiN];
vector<int> Adj[MaxiN];
void DFS(int Cur) {
  for (typeof(Adj[Cur].begin()) it = Adj[Cur].begin(); it != Adj[Cur].end();
       ++it)
    if (Pa[*it] == -1) {
      Pa[*it] = Cur;
      DFS(*it);
    }
}
void Paint(int Cur, int Col) {
  Color[Cur] = Col;
  for (typeof(Adj[Cur].begin()) it = Adj[Cur].begin(); it != Adj[Cur].end();
       ++it)
    if (Pa[*it] == Cur) Paint(*it, Col ^ 1);
}
bool ReDFS(int Cur) {
  for (typeof(Adj[Cur].begin()) it = Adj[Cur].begin(); it != Adj[Cur].end();
       ++it)
    if (Pa[*it] == Cur) {
      if (!ReDFS(*it)) return 0;
    }
  if (Pa[Cur] != -1) {
    int Consist = -1;
    for (typeof(Adj[Cur].begin()) it = Adj[Cur].begin(); it != Adj[Cur].end();
         ++it)
      if (*it != Pa[Cur]) {
        if (Consist == -1) Consist = Color[*it];
        if (Consist != Color[*it]) Consist = -2;
      }
    if (Consist >= 0) Color[Cur] = Consist ^ 1;
  }
  int Bad = 0;
  for (typeof(Adj[Cur].begin()) it = Adj[Cur].begin(); it != Adj[Cur].end();
       ++it)
    Bad += (Color[*it] == Color[Cur]);
  return Bad < 2;
}
void Run() {
  scanf("%d%d", &N, &M);
  fill(Pa, Pa + N, -1);
  for (int i = 0; i < N; ++i) Adj[i].clear();
  for (int i = 0; i < M; ++i) {
    int U, V;
    scanf("%d%d", &U, &V);
    --U, --V;
    Adj[U].push_back(V);
    Adj[V].push_back(U);
  }
  bool Able = 1;
  for (int i = 0; i < N; ++i)
    if (Pa[i] == -1) {
      Pa[i] = -2;
      DFS(i);
      Paint(i, 0);
      if (ReDFS(i)) continue;
      Paint(i, 0);
      Color[i] = 1;
      if (ReDFS(i)) continue;
      Able = 0;
      break;
    }
  if (!Able) {
    puts("-1");
    return;
  }
  for (int i = 0; i < N; ++i) putchar('0' + Color[i]);
  puts("");
}
}  // namespace Poor
int main() {
  Poor::Run();
  return 0;
}