#include using namespace std; vector solve(int N){ vector result; long long n2 = 1LL; for (int i2 = 0; i2 <= N; ++i2){ long long n5 = 1LL; for (int i5 = 0; i5 <= N; ++i5){ result.push_back(n2 * n5); n5 *= 5LL; } n2 *= 2LL; } sort(begin(result), end(result)); return result; } int main() { cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; auto result = solve(N); for (auto &v : result) cout << v << '\n'; return 0; }