#include using namespace std; typedef long long ll; #define rep(i, n) for(int i = 0; i < (n); i++) #define rep1(i, n) for(int i = 1; i < (n); i++) #define all(a) begin(a),end(a) int main() { cin.tie(0);ios::sync_with_stdio(false); int N; cin >>N; N++; vector d(N*N); ll fi[N], se[N]; fi[0] = se[0] = 1; rep1(i, N) { fi[i] = fi[i-1]*2; se[i] = se[i-1]*5; } int k = 0; rep(i, N) rep(j, N) d[k++] = fi[i] * se[j]; sort(all(d)); // rep(i, d.size()) cout << d[i] << "\n"; rep(i, d.size()) printf("%lld\n", d[i]); }