#include using namespace std; using ll = long long; using ul = unsigned long; using ull = unsigned long long; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; ll N = pow(10, n); int x2{ 0 }, x5{ 0 }; while (!(N & 1)) { ++x2; N >>= 1; } while (N >= 5) { ++x5; N /= 5; } vector div; ll xx2{ 1 }; for (int i = 0; i <= x2; ++i) { ll xx5{ 1 }; for (int j = 0; j <= x5; ++j) { div.push_back(xx2 * xx5); xx5 *= 5; } xx2 <<= 1; } sort(div.begin(), div.end()); stringstream ss; for (const auto& it : div) ss << it << "\n"; cout << ss.str(); return 0; }