#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int n, m;
int ans[300030];
vector<int> g[300030];
int main() {
  int a, b;
  scanf("%d%d", &n, &m);
  while (m--) {
    scanf("%d%d", &a, &b);
    g[a].push_back(b);
    g[b].push_back(a);
  }
  memset(ans, 0, sizeof ans);
  bool flag = false;
  while (true) {
    if (flag) break;
    flag = true;
    for (int i = 1; i <= n; i++) {
      int cnt[2] = {0, 0};
      for (int j = 0; j < g[i].size(); j++) {
        int v = g[i][j];
        if (ans[v])
          cnt[1]++;
        else
          cnt[0]++;
      }
      if (cnt[ans[i]] > 1) {
        ans[i] ^= 1;
        flag = false;
      }
    }
  }
  for (int i = 1; i <= n; i++) cout << ans[i];
  cout << endl;
  return 0;
}
