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