#include <bits/stdc++.h>
using namespace std;
const long long N = 3e5 + 100;
vector<long long> a[N];
long long d[N], t[N];
set<pair<long long, long long> > s;
int32_t main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long n, m;
  cin >> n >> m;
  for (long long i = 0, u, v; i < m; i++) {
    cin >> u >> v;
    u--;
    v--;
    a[u].push_back(v);
    a[v].push_back(u);
    d[u]++;
    d[v]++;
  }
  for (long long i = 0; i < n; i++) {
    s.insert(make_pair(-d[i], i));
  }
  while (s.begin()->first < -1) {
    long long v = s.begin()->second;
    s.erase(s.begin());
    t[v] = 1 - t[v];
    d[v] = 0;
    for (auto u : a[v]) {
      s.erase(make_pair(-d[u], u));
      if (t[u] != t[v]) {
        d[u]--;
      } else {
        d[u]++, d[v]++;
      }
      s.insert(make_pair(-d[u], u));
    }
    s.insert(make_pair(-d[v], v));
  }
  for (long long i = 0; i < n; i++) {
    cout << t[i];
  }
  cout << "\n";
  return 0;
}
