Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

C++: #include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main()
{
	int a, b;
	while (cin >> a){
		cin >> b;
		int sum = a + b;
		stringstream ss;
		ss << sum;
		string str(ss.str());
		cout << str.size();
	}

}

C++: #include <iostream>
#include <vector>
#include <algorithm>
#include <functional>

int main(void)
{
  int val1, val2;

  while (std::cin >> val1 >> val2) {

    int sum = val1 + val2;

    int numDigit = 0;
    while (sum > 0) {
      sum /= 10;
      numDigit++;
    }

    std::cout << numDigit << std::endl;
  }

  return 0;
}

C++: #include <iostream>
#include <cstdlib>
#include <string>
using namespace std;


int main(){
	int a, b;
	while (cin >> a >> b){

		int sum = a+b;
		string su = to_string(sum);
		cout << su.size() << endl;
	}


	return 0;
}

C++: # include <iostream>
using namespace std;
int main(){
  int a,b;
  cin >> a; cin >> b;
  int N = a+b;
  int num_digit = 0;
  while (true){
    num_digit++;
    N = N/10;
    if(N<1) break;
  }
  cout << num_digit << endl;
}

C++: #include <iostream>

int main(){
    int a, b;
    while(std:: cin >> a >> b){
        a += b;
        int ans = 0;
        while(a > 0){
            a /= 2;
            ans++;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

C++: #include <iostream>
using namespace std;

int main() {

    int a, b, x, ans;
    
    while (cin >> a >> b) {
        x = a + b;
        ans = 0;
        
        while (x > 0) {
            ans++;
            x /= 10;
           
        }
         cout << ans << endl;
    }

    return 0;
}

C++: #include <cmath>
#include <iostream>

int main() {
    
    int a, b;
    
    while (std::cin >> a >> b) {
        int digit = std::log10(a + b) + 1;
        std::cout << digit << std::endl;
    }

    return 0;   
}

C++: #include<iostream>
using namespace std;
int main(){
  int a,b,i=0;
  cin>>a>>b;
  int num=1;
  int c=a+b;
  while(c/10!=0){
    num++;
    c/=10;
  }
  cout<<num<<endl;
  return 0;
}

C++: #include <stdio.h>

int main(){
 int a,b;
 while(scanf("%d %d ",&a,&b)>0){
  a+=b;
  b=0;
  while(a>0){
   b++;
   a/=10;
  }
  printf("%d\n",(b?b:1));
 }



 return 0;
}

C++: #include <iostream>
#include <string>
#include <cstring>

using namespace std;
int main()
{
    int a,b;
    while(cin >> a >> b) {
        int sum = a + b;
        int cnt = 0;
        for(int i = 1;(sum / i) != 0; i *= 10) {
            cnt++;
        }
        cout << cnt << endl;
    }
}

C++: #include<iostream>
#include <algorithm>
using namespace std;

int main(){
	int a, b, num, i = 1;
	cin >> a >> b;
	num = a*b;
	while(1){
		if(num < 10) break;
		i++;
		num /= 10;
	}
	cout << i << endl;
    return 0;
}

C++: #include<iostream>
using namespace std;

int main() {
	int a, b;
	while (cin >> a >> b) {
		int tmp = a + b;
		for (int i = 1;;i++) {
			if (tmp < 10) {
				cout << i << endl;
				break;
			}
			tmp = tmp / 10;
		}
	}
}

C++: #include <cstdio>
#include <iostream>

using namespace std;

int main(void)
{

	for(int i = 0; i < 3; i++){
		int a, b;
		scanf("%d %d", &a, &b);
		a+=b;
		int d = 1;
		a /= 10;
		while(a > 0){
			a /= 10;
			d++;
		}
		cout << d << endl;
	}

	return 0;
}

C++: #include <stdio.h>
main(){
  int a,b,c,count,n;
  n=0;
  while(n<3){
  scanf("%d%d",&a,&b);
  c=a+b;
  count=0; 
 while(c>0){
    c/=10;
    count++;
  }
  printf("%d\n",count);
  n++;
  }
return 0; 
}

C++: #include <iostream>
using namespace std;

int main() {
  char x, y;
  while(true) {
    cin >> x >> y;
    if(x == EOF) {
      break;
    }
    cout << (int)x + (int)y << endl;
  }
}

C++: #include<iostream>
using namespace std;
 
int main(){
    int A[200];
    int B[200];
    int i;
    for(i = 0; i < 200; i++){ A[i] = -1; B[i] = -1; }
    for(i = 0; i < 200; i++){ cin >> A[i] >> B[i]; }
    i = 0;
    int sum, digit;
    while(A[i] >= 0){
        sum = A[i] + B[i];
        while(digit){
            sum /= 10;
            digit++;
        };
        cout << digit << endl;
        i++;
    };
    return 0;
}

C++: #include<algorithm>
#include<iostream>
#include<cmath>
using namespace std;

int main(){
	int a, b;
	while(cin >>a >>b){
		int tmp=a+b;
		for(int i=0; ;i++){
			tmp /= 10;
			if(tmp==0){
				cout << i+1 << endl;
				break;
			}
		}
	}

    return 0;
}

C++: #include <sstream>
#include <iostream>
#include <string>
 
using namespace std;

int main(){
	int a,b,n;
	cin >> a>>b;
	n=a+b;
	int ans = 1;
	while(n>=10){
		n/=10;
		ans++;
	}
	cout << ans << endl;
	return 0;
}

C++: #include<stdio.h>


int main(){
	int i,j;
	scanf("%d %d",&i,&j);
	int count=0;
	i=i+j;
	while(i>0){
		i=i/10;
		count++;
	}
	printf("%d",count);
	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
	
	int i;

	int a,b,sum,figure;
	do{
		cin >> a >> b;
	}while((a<0||a>100000)&&(b<0||b>100000));
	
	sum = a + b;

	
	figure = 1;
	while(sum/10!=0){
		sum = sum/10;
		figure++;
	}
	cout << figure << "\n";
	
	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <cmath>

using namespace std;


int main(){
    int a, b;
    char* str;
    str = (char*)malloc(sizeof(char) * 50);

    while(fgets(str, 50, stdin) != NULL) {
        sscanf(str, "%d%d", &a, &b);
        cout << (int)log10(a+b) + 1 << endl;
    }

    return 0;
}

C++: #include <bits/stdc++.h>
 
using namespace std;
 
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define FOR(i, s, n) for(int i = s; i < (int)n; i++)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i)
#define SZ(a) int((a).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define INF 1 << 25
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x) cerr << #x << " = " << (x) << "\n";
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n";
#define sq(n) (n) * (n)
 
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned int uint;
typedef unsigned long long ull;
 
const double EPS = 1e-10;
const double PI = acos( -1.0 );
 
int a, b;
 
int main() {
    while ( scanf( "%d %d", &a, &b ) != EOF ) {
        a += b;
        int ans = 0;
        while ( true ) {
            if ( a / 10 == 0 && a % 10 == 0 ) {
                break;
            }
            ans++;
            a /= 10;
        }
        printf( "%d\n", ans );
    }
    return 0;
}

C++: #include <sstream>

#include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		int c = a + b;
		string x = to_string(c);
		cout << x.size() << endl;
	}
	return 0;

}

C++: #include<iostream>
#include<string>


using namespace std;

int main()
{

        int a,b;
        string input;
        int size = 0;

        while(cin >> a >> b)
        {
                b += a;
                input = to_string(b);
                size = input.size();
                cout << size;
        }

}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,i=0;

	while (scanf("%d%d", &a, &b) ){
		
		if (a + b < 1000000){
			printf("6\n");
		}else if(a + b < 100000){
			printf("5\n");
		}else if (a + b < 10000){
			printf("4\n");
		}else if (a + b < 1000){
			printf("3\n");
		}else if (a + b < 100){
			printf("2\n"); 
		}else if (a + b < 10){
			printf("1\n");
		}i++;
	}
	return 0;
}