#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); vector A,B; for(int i=1;i<10;i++){ for(int j=i+1;j<10;j++){ A.push_back(i); B.push_back(j); } } int k=A.size(); int n; cin>>n; n--; int a=n/k,b=n%k; cout<