#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> N; vector> p; for(int a = 1; a <= 9; ++a){ for(int b = a+1; b <= 9; ++b){ p.push_back({a, b}); } } if(N % 36 == 0){ int cnt = N/36; cout << p.back().first << p.back().second; rep(i, 0, cnt-1) cout << p.back().second; cout << endl; }else{ int i = N % 36 - 1, cnt = N/36; cout << p[i].first << p[i].second; rep(i, 0, cnt) cout << p[i].second; cout << endl; } return 0; }