#include #include #include #include #include #include using namespace std; typedef long long int lint; int main() { int N; cin >> N; vectorvec(100000); for (int ic = 0; ic < 100000; ic++) { vec.at(ic) = 100000; } int cnt = 0; for (int ia = 0; ia <= N; ia++) { for (int ib = 0; ib <= N; ib++) { vec.at(cnt) = pow(2, ia) * pow(5, ib); cnt++; } } sort(vec.begin(), vec.end()); int i = 0; while (vec.at(i) != 100000) { cout << vec.at(i) << endl; i++; } }