#include #include using namespace std; int main() { int n; cin >> n; string s; for (int digit = 1; digit <= n; ++digit) { for (int i = 0; i < n; ++i) { s.push_back('0' + (digit % 10)); } } cout << s << endl; return 0; }