func_code_string: #include <bits/stdc++.h>   using namespace std;   int C[50][50];   int main() {     C[0][0] = 1;     for (int i = 1; i <= 30; i++) {       C[i][0] = C[i][i] = 1;       for (int j = 1; j <= 30; j++) {         C[i][j] = C[i - 1][j] + C[i - 1][j - 1];       }     }     string p =  aaaaaaaaab ;     int pSize = (int)p.size() - 1;     string result =   ;     int n;     cin >> n;     for (int i = 30; i >= 9; i--) {       while (n >= C[i][pSize]) {         n -= C[i][pSize];         result +=  b ;       }       result +=  a ;     }     reverse(result.begin(), result.end());     result = p.substr(0, pSize - 1) + result;     long long cnt = 0;     int aCnt = 0;     for (int i = 0; i < result.size(); i++) {       aCnt += result[i] ==  a ;       if (result[i] ==  b ) cnt += C[aCnt][pSize];     }     cout << result <<     << p <<   n ;     return 0;   }   