#include using namespace std; typedef long long ll; int check[100000]; int del[100000]; vector G[100000]; int main() { cin.tie(0); ios::sync_with_stdio(false); int n, m; cin >> n >> m; for(int i = 0; i < m; i++) { int a, b; cin >> a >> b; G[a].push_back(i); G[b].push_back(i); } for(int i = n - 1; i >= 0; i--) { bool ok = true; for(auto id : G[i]) { if(check[id]) { ok = false; break; } } if(ok) { for(auto id : G[i]) { check[id] = 1; } del[i] = 1; } } string s; for(int i = 0; i < n; i++) { if(del[i]) s += '0'; else s += '1'; } while(s.back() == '0') s.pop_back(); reverse(s.begin(), s.end()); if(s == "") s = "0"; cout << s << endl; }