N,M=map(int,input().split())
a=[]
ans=["a"]*N
for _ in range(M):
    a.append(list(map(int,input().split())))
for i in range(M):
    ans[a[i][0]-1]=a[i][1]
for j in range(N):
    if type(ans[j])!=int:
        if j==0:
            ans[j]=1
        else:
            ans[j]=0
print(*ans,sep="")