#include using namespace std; using ll = long long; int main () { int s = 1; for (int i = 0; i < 9; i ++) { cout << s << (i < 8 ? " " : ""); s *= 3; } cout << endl; }