#include #define FOR(i,a,b) for (int i=(a);i<(b);i++) #define FORR(i,a,b) for (int i=(a);i>=(b);i--) #define pb push_back using namespace std; typedef long long ll; typedef pair pii; typedef vector vi; typedef set si; const int inf = 1e9; const int mod = 1e9+7; int n, m; vi v[100000]; bool b[100000]; bool must(int a){ for(vi::iterator itr = v[a].begin(); itr != v[a].end(); itr++){ if((!b[*itr]) && (*itr > a)) return true; } return false; } main(){ cin.tie(0); ios::sync_with_stdio(false); cin >> n >> m; FOR(i, 0, m){ int a, b; cin >> a >> b; v[a].pb(b); v[b].pb(a); } FORR(i, n-1, 0){ b[i] = must(i); } bool z = false; FORR(i, n-1, 0){ if(z || b[i]){ z = true; cout << (b[i] ? "1" : "0"); } } cout << endl; }