#include using namespace std; #define all(hoge) (hoge).begin(), (hoge).end() #define en '\n' using ll = long long; using ull = unsigned long long; typedef vector vec; typedef vector> mat; typedef vector>> mat3; typedef vector svec; typedef vector> smat; typedef pair P; constexpr long long INF = 1LL << 60; constexpr int INF_INT = 1 << 25; constexpr long long MOD = (ll)1e9 + 7; // constexpr long long MOD = 998244353LL; using ld = long double; static const ld pi = 3.141592653589793L; template bool chmax(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; } template bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; } // for (int i = 0; i <= n; ++i) // vector v(n), c(n); int main() { int n; cin >> n; string res = ""; if (n == 1) { cout << "1" << endl; exit(0); } for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { res = to_string(i) + res; } } cout << res << endl; return 0; }