#include #include #include #include #include #include #include #include #include #include #include #include #include #define p(s) cout<<(s)<=n;i--) #define CK(n,a,b) ((a)<=(n)&&(n)<(b)) #define F first #define S second typedef long long ll; using namespace std; const int inf = 1e9+7; int N; ll two[20]; ll five[20]; vector ans; int main() { cin>>N; two[0]=1; five[0]=1; REP(i,1,N+1){ two[i]=two[i-1]*2; five[i]=five[i-1]*5; } REP(i,0,N+1){ REP(j,0,N+1){ ans.push_back(two[i]*five[j]); } } sort(ans.begin(), ans.end()); for(auto a: ans){ p(a); } return 0; }