import sys
import itertools

input = sys.stdin.readline

N, M = map(int, input().split())
E = [tuple(map(int, input().split())) for _ in range(M)]
E.sort(key=lambda x: -x[1])

V = [0] * N
for a, b in E:
    if not V[a] and not V[b]:
        V[a] = 1

V = list(itertools.dropwhile(lambda x: not x, reversed(V)))
print(''.join(map(str, V)))