#include using namespace std; const int N=1e5+10; bool vis[N]; int main() { //freopen("highway.in","r",stdin); //freopen("highway.out","w",stdout); int n,m,u,v; scanf("%d %d",&n,&m); while(m--) scanf("%d %d",&u,&v),vis[u=0;i--) { if(!vis[i]) continue; for(int j=i;j>=0;j--) printf("%d",vis[j]); break; } return 0; }