#include using namespace std; typedef long long ll; struct Edge { int id, to; }; 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, b }); G[b].push_back({ i, a }); } for(int i = n - 1; i >= 0; i--) { bool ok = true; for(auto e : G[i]) { if(check[e.id]) { ok = false; break; } } if(ok) { for(auto e : G[i]) { check[e.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; }