func_code_string: #include <bits/stdc++.h>   long long k, m = 9, l, c, lc, n, md, tr = 1, fl, res;   int main() {     scanf( %lld , &k);     while (1) {       l++;       lc += m * l;       if (k - lc <= 0) {         c = k - (lc - m * l);         break;       }       m *= 10;       tr *= 10;     }     n = (c + l - 1) / l;     tr = tr + n - 1;     md = c % l;     if (md == 0) md += l;     while (1) {       res = tr % 10;       tr /= 10;       if (l - fl == md) {         printf( %lld , res);         return 0;       }       fl++;     }   }   