#include <bits/stdc++.h>
using namespace std;
vector<int> d[300000 + 5];
int color[300000 + 5];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  while (m--) {
    int a, b;
    cin >> a >> b;
    d[a - 1].push_back(b - 1);
    d[b - 1].push_back(a - 1);
  }
  for (int k = 0; k < 100; k++) {
    bool flag = true;
    for (int i = 0; i < n; i++) {
      int cant = 0;
      for (int j = 0; j < d[i].size(); j++) cant += color[i] == color[d[i][j]];
      if (cant > 1) {
        flag = false;
        if (color[i] == 0)
          color[i] = 1;
        else
          color[i] = 0;
      }
    }
    if (flag) break;
  }
  for (int i = 0; i < n; i++) cout << color[i];
  cout << endl;
}
