#include using namespace std; int main() { int N; cin >> N; string s; for( int i = 1; i <= min( N, 9 ); i++ ) { s += (char)(i + '0'); } if( N >= 10 ) s += '0'; string ans; for( int i = 0; i < N; i++ ) { ans += s; } cout << ans << endl; }