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