#include using namespace std; int main() { int N; cin >> N; long long n = 1; for( int i = 0; i < N; i++ ) n *= 10; long long nn = n; int n2 = 0; while( nn % 2 == 0 ) { nn /= 2; n2++; } int n5 = 0; while( nn % 5 == 0 ) { nn /= 5; n5++; } vector ans; ans.push_back( 1 ); int nn2 = 2; for( int i = 0; i < n2; i++ ) { ans.push_back( nn2 ); nn2 *= 2; } int nn5 = 5; for( int i = 0; i < n5; i++ ) { ans.push_back( nn5 ); nn5 *= 5; } nn2 = 2; for( int i = 0; i < n2; i++ ) { nn5 = 5; for( int j = 0; j < n5; j++ ) { ans.push_back( nn2 * nn5 ); nn5 *= 5; } nn2 *= 2; } sort( ans.begin(), ans.end() ); for( int i = 0; i < ans.size(); i++ ) { cout << ans[i] << endl; } }