print(1,3,9,27,81,243,729,2187,6561)