## https://yukicoder.me/problems/no/2410 def main(): A = [3 ** i for i in range(9)] print(" ".join(map(str, A))) if __name__ == "__main__": main()