// yuki 964 2020 // 2019.1.13 bal4u #include #define gc() getchar_unlocked() #define pc(c) putchar_unlocked(c) int in() { // 非負整数の入力 int n = 0, c = gc(); do n = 10 * n + (c & 0xf); while ((c = gc()) >= '0'); return n; } int main() { int i, j, n, N; N = in(); if (N == 1) pc('1'); else { n = N; if (N == 10) n--; i = N; while (i--) { j = N; while (j--) pc('0'+n); n--; } } pc('\n'); return 0; }