#include using namespace std; using i64 = long long; #define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++) int N; int main(){ cin >> N; vector vec; i64 num = 1; for(int i = 0;i < N;i++) num *= 10; i64 two = 1; for(int i = 0;i <= N;i++){ i64 five = 1; for(int j = 0;j <= N;j++){ vec.push_back(two * five); five *= 5; } two *= 2; } sort(vec.begin(),vec.end()); for(i64 i : vec){ cout << i << endl; } }