#include <bits/stdc++.h>
using namespace std;
vector<long long int> v[500001];
long long int col[500001];
int main() {
  ios::sync_with_stdio(false);
  ;
  cin.tie(0);
  ;
  long long int i, j, n, m, deg, x, y, f;
  cin >> n >> m;
  for (i = 1; i <= m; i++) {
    cin >> x >> y;
    v[x].push_back(y);
    v[y].push_back(x);
  }
  while (1) {
    f = 0;
    for (i = 1; i <= n; i++) {
      deg = 0;
      for (j = 0; j < v[i].size(); j++) {
        if (col[i] == col[v[i][j]]) deg++;
      }
      if (deg > 1) {
        col[i] = col[i] ^ 1;
        f = 1;
      }
    }
    if (!f) break;
  }
  for (i = 1; i <= n; i++) cout << col[i];
  return 0;
}
