#include #include #include #include #include #include #include using namespace std; using ll = long long; int main() { ll n; cin >> n; vector a; ll t = 1; for (int i = 0; i <= n; i++) { ll s = 1; for (int j = 0; j <= n; j++) { a.push_back(t * s); s *= 5; } t *= 2; } sort(a.begin(), a.end()); for (auto& i : a) { cout << i << endl; } return 0; }