func_code_string: #include <bits/stdc++.h>   using namespace std;   int frombase(int x, int base) {     int i = 0;     int ans = 0;     while (x) {       ans += ((x % base) * pow((double)10, i));       i++;       x /= base;     }     return ans;   }   int tobase(int x, int base) {     int i = 0;     int ans = 0;     while (x) {       ans += ((x % 10) * pow((double)base, i));       i++;       x /= 10;     }     return ans;   }   int main() {     int a, b;     cin >> a >> b;     int maxi = 0;     int x = a;     while (x) {       maxi = max(x % 10, maxi);       x /= 10;     }     x = b;     while (x) {       maxi = max(x % 10, maxi);       x /= 10;     }     maxi++;     int sum = tobase(a, maxi) + tobase(b, maxi);     sum = frombase(sum, maxi);     x = 0;     while (sum) {       sum /= 10;       x++;     }     cout << x << endl;     return 0;   }   