#include #define rep(i,n) for(int i = 0; i < (n); i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(0); int N; cin >> N; vector ans; for(int x = 0; x <= N; x++) { for(int y = 0; y <= N; y++) { ll p = 1; rep(_,x) p *= 2; rep(_,y) p *= 5; ans.push_back(p); } } sort(ans.begin(), ans.end()); for(ll a : ans) cout << a << '\n'; }