import sys N = 10 li = [-1]*N n1 = 0 n2 = 0 i = 0 while n2 < N: if n2 == n1: li[i] += 1 elif n2 > n1: i += 1 li[i] += 1 else: li[i] -= 1 i += 1 li[i] += 1 print "".join(map(str, li)) sys.stdout.flush() message = raw_input() n1 = n2 n2 = int(message.split()[0])