#include #include #include using namespace std; #define YES(condition) if(condition) cout << "YES" << endl; else cout << "NO" << endl #define Yes(condition) if(condition) cout << "Yes" << endl; else cout << "No" << endl #define POSS(condition) if(condition) cout << "POSSIBLE" << endl; else cout << "IMPOSSIBLE" << endl #define Poss(condition) if(condition)cout << "Possible" << endl; else cout << "Impossible" << endl #define First(condition) if(condition)cout << "First" << endl; else cout << "Second" << endl #define negative(condition, num) if(condition)cout << -1 << endl; else cout << num << endl long power(long base, long exponent, long mod){ if(exponent % 2){ return power(base, exponent - 1, mod) * base % mod; }else if(exponent){ long root_ans = power(base, exponent / 2, mod); return root_ans * root_ans % mod; }else{ return 1; }} struct position{ int y, x; }; position move_pattern[4] = {{-1, 0}, {0, 1}, {1, 0}, {0, -1}}; template void array_output(itr start, itr goal){ string ans; for(auto i = start; i != goal; i++){ ans += to_string(*i) + " "; } ans.pop_back(); cout << ans << endl; } long gcd(long a, long b){ if(a && b){ return gcd(min(a, b), max(a, b) % min(a, b)); }else{ return a; }} #define division long(1e9 + 7) #define all(x) (x).begin(), (x).end() int main(){ int N; cin >> N; vector ans; for(int i = 0; i <= N; i++){ for(int j = 0; j <= N; j++){ ans.push_back(power(2, i, division) * power(5, j, division)); } } sort(all(ans)); for(int i = 0; i < ans.size(); i++){ cout << ans[i] << endl; } }