#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> N; vector pow2(20, 1LL), pow5(20, 1LL); for(int i=1; i<=18; ++i){ pow2[i] = pow2[i-1] * 2LL; pow5[i] = pow5[i-1] * 5LL; } vector ans; for(int i=0; i<=N; ++i){ for(int j=0; j<=N; ++j){ ans.push_back(pow2[i]*pow5[j]); } } sort(ans.begin(), ans.end()); for(ll a : ans){ cout << a << endl; } return 0; }