#35094: 我女友叫我寫的


10955052@st.chjhs.tp.edu.tw (07段律言)


 

 

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