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