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 <algorithm>
using namespace std;
int main(){
    int i,o,b=0,f;
    while(cin>>i>>o){
        f=i+o;
        for(int j=1;j<=1000000;j=j*10){
            if(f>=j){
                b++;
            }else{
                break;
            }
        }
        cout<<b<<endl;
        b=0;
    }
    return 0;
}

C++: #include "bits/stdc++.h"
using namespace std;
int main(){
    int a, b;
    
    while(cin >> a >> b){
        int cnt = 1;
        double sum = a + b;
        while(sum >= 10)
        {
            sum /= 10;
            cnt++;
        }
        cout << cnt << endl;
    }     
    return 0;
}

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

int digit(int num){
	if((num / 10) > 0){
		return (digit(num/10))+1;
	}
	else return 1;
}

int main(){
	int num1,num2,result=0;
	while(1){
		if(scanf("%d %d",&num1,&num2) == 0)break;
		result = digit(num1+num2);
		cout << result << endl;
		break;
	}
	return 0;
}

C++: #include<iostream>
#include<string.h>
#include<math.h>
using namespace std;

//char to int(return number)
int ctoi(char str[]){
    int num = 0;

    for(int i = 0;i < strlen(str);i++){
        if(str[i] >= '0' && str[i] <= '9'){
            num += (str[i] - '0') * pow(10, strlen(str)-1 - i);
        }
    }
    return num;
}

//get digit(return int)
int get_digit(int num){
    int digit = 0;
    while(num > 0){
        num = num/10;
        digit++;
    }
    return digit;
}

int main(){
    int a, b;
    int answer[200];
    int size = 0;

    while(std::cin >> a >> b){
        size++;
        answer[size] = get_digit(a + b);
    }
    for(int i = 0;i < size;i++){
        cout << answer[i];
    }
    return 0;
}

C++: #include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main() {
  int a, b, cnt;
  string s;
  getline(cin, s, ' ');
  a = stoi(s);
  getline(cin, s);
  b = stoi(s);
  a += b;
  cnt = 0;
  if (a == 0) {
    cnt = 1;
  } else {
    while (a) {
      cnt++;
      a /= 10;
    }
  }
  cout << cnt << endl;
  return 0;
}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
  int a,b;
  while(cin >> a){
	cin >> b;
	int sum = a+b;
	string str;
	str = to_string(sum);
	cout << str.size() << endl;
  }
return 0;
}

C++: /*
??????????????????????????´??° a ??¨ b ??????????????°???????????????????????°?????????????????????????????????
???????????????????????° <= 200
*/

#include <iostream>
#include <string>

using namespace std;
 
int main()
{

	int a, b, calc, strCount = 0;
	string str = "";

	for ( int i = 0; i < 200;  i++ ) {
		a = b = 0;
		
		cin >> a >> b;

		if ( a == 0 && b == 0 ) {
			break;
		}

		calc = a + b;
		str = to_string( calc );
		strCount = str.size();
		
		cout << strCount << endl;
	}

    return 0;
}

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

int main() {
  int a,b;
  while(scanf("%d %d",&a,&b) != EOF) {
    int num = a + b;
    int digit = 1;
    while(num >= 10) {
      digit++;
      num /= 10;
    }
    printf("%d\n",digit);
  }
}

C++: #include <iostream>
using namespace std;
int main(){
  int a, b;

  while(scanf("%d %d", &a, &b ) != EOF){
    int c = a + b;
    int n = 1;
    while(1){ 
      c /= 10;   
      if(c  == 0) break;
      n++;
    }
    cout << n << endl;
  }

  return 0;
}

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

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

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

int main()
{
    int i,EOF;
    cin>>EOF;
    for(i=0; i<EOF;i++){                    //0 竕、 a, b 竕、 1000000
        int a, b, sum,count=0;
        cin >> a >> b;
        sum = a+b;
        if(sum<=1000000){
        while(sum!=0){
            sum/=10;
            ++count;
            }
        }
        cout << count <<endl;
        }

    return 0;
}