#define _USE_MATH_DEFINES #include using namespace std; const long long INF = LLONG_MAX; signed main() { ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; string ans; for (int i = 9; i >= 10 - n; i--) for (int j = 0; j < n; j++) ans += '0' + i; cout << ans << '\n'; return 0; }