#include #include #include using namespace std; int main() { int n; cin >> n; vector res; for (int i = 0; i <= n; i++) { for (int j = 0; j <= n; j++) { long long go = 1; for (int k = 0; k < j; k++) { go *= 2; } for (int k = 0; k < i; k++) { go *= 5; } res.push_back(go); } } sort(res.begin(), res.end()); for (int i = 0; i < (int)res.size(); i++) { cout << res[i] << endl; } }