ANS = [pow(3, i) for i in range(9)] print(*ANS)