a,b = map(int, input().split()) if a+b==0: print(0) else: for i in range(a+b): print(1)