result=[] for i in range(9): result.append(3**i) print(*result)