#include using namespace std; typedef long long ll; #define rep(i, n) for(int i = 0; i < (n); i++) #define all(a) begin(a),end(a) ll powll(ll b, ll x) { if (x == 0) return 1; if (x == 1) return b; if (x & 1) return powll(b*b, x/2) * b; return powll(b*b, x/2); } int main() { int N; cin >>N; vector d; rep(i, N+1) rep(j, N+1) d.push_back(powll(2,i)*powll(5,j)); sort(all(d)); rep(i, d.size()) cout << d[i] << endl; }