#include <bits/stdc++.h>
using namespace std;
vector<int> g[4 * 100000];
int col[4 * 100000];
void dfs(int on) {
  int cc = 0;
  for (__typeof((g[on]).begin()) i = (g[on]).begin(); i != (g[on]).end(); i++)
    cc += col[*i] == col[on];
  if (cc > 1) {
    col[on] = 1 - col[on];
    for (__typeof((g[on]).begin()) i = (g[on]).begin(); i != (g[on]).end(); i++)
      dfs(*i);
  }
}
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = (0); i < int(m); i += 1) {
    int a, b;
    cin >> a >> b;
    --a;
    b--;
    g[a].push_back(b);
    g[b].push_back(a);
  }
  for (int i = (0); i < int(n); i += 1) dfs(i);
  for (int i = (0); i < int(n); i += 1) cout << col[i];
  return 0;
}
