#include using namespace std; #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); typedef long long ll; // Welcome to my source code! int main() { IOS int n; cin >> n; int k = 1; for (int i = n; i >= k; i--) { if (i == 10) i--, k--; for (int j = 0; j < n; j++) cout << i; } cout << endl; }