#include <bits/stdc++.h>
using namespace std;
const int maxn = 3 * 1e5 + 100;
vector<int> adj[maxn];
int a[maxn], n, m;
int main() {
  cin >> n >> m;
  for (int i = 0; i < m; i++) {
    int x, y;
    cin >> x >> y;
    adj[x].push_back(y);
    adj[y].push_back(x);
  }
  for (int k = 0; k < 100; k++)
    for (int i = 1; i <= n; i++) {
      int s = 0;
      for (int j = 0; j < adj[i].size(); j++) s += a[adj[i][j]];
      if (a[i]) {
        if (s > 1) a[i] = 0;
      } else if (s < 2)
        a[i] = 1;
    }
  for (int i = 1; i <= n; i++) cout << a[i];
}
