#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}); } } int i = N % 36 - 1; cout << p[i].first << p[i].second; rep(j, 0, N/36) cout << p[i].second; cout << endl; return 0; }