#include using namespace std; int main() { int num; int curr; int i; int sum, currValue, x; // string input; // string input2; //cin >> input; //getline(cin,input2); //getline(cin,input2); //cout << input << " " << input2 << endl; // for (int i=0; i < 100; i++){ // cout << i + 1 << endl; // } //cin >> num; //for (i = 0; i < num; ++i) { // cin >> curr; // cout << curr; //} //cin >> x; /*sum = 0; for (i = 0; i < x; ++i) { cin >> currValue; sum += currValue; } cout << sum << endl; */ x = 18; while (x>0){ cout << x << " "; x = x/3; } return 0; }