#include #define rep(i,n) for(int i=0;i<(n);++i) #define all(a) (a).begin(),(a).end() using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector ans; rep(i, n + 1) { ll k = pow(2, i); ans.push_back(k); } rep(i, n + 1) { rep(j, n + 1) { ll k = ans[i] * pow(5, j); ans.push_back(k); } } sort(all(ans)); auto result = unique(all(ans)); ans.erase(result, ans.end()); int l = (n + 1) * (n + 1); rep(i, l) { cout << ans[i] << endl; } return 0; }