#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; int main() { int N; cin >> N; priority_queue, greater> Q; for (long long i = 0; i <= N; i++) { for (long long j = 0; j <= N; j++) { long long D = pow(2, i) * pow(5, j); Q.push(D); } } while (Q.size() > 0) { cout << Q.top() << endl; Q.pop(); } }