#include using namespace std; int main(){ int N; cin >> N; for (int i = N - 1; i >= 0; i--){ for (int j = 0; j < N; j++){ cout << i; } } cout << endl; }