#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int N; cin >> N; if (N == 0 || N == 1) { cout << N << '\n'; return 0; } for (int i = N - 1; i >= 0; i--) { for (int j = 0; j < N; j++) { cout << i; } } cout << '\n'; return 0; }