from math import factorial for j in range(0,14): if j == 0: print("0") elif j == 1: print("1") else: print(2*(3**(j-2)))