n = int(input()) if n == 0: print(1) else: for i in range(n): print(0,end = "") print(1) for i in range(n): print(0,end = "")