try : while True: a = int(input()) b = 0 for i in range(0,a+1,1): c = "2^{} = {}".format(b,2**b) print(c) b+=1 except EOFError: pass