Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(s[0])
		b, _ := strconv.Atoi(s[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

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

int main(){
  int a, b, s, x=0;

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

  return 0;
}

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

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

C++: while gets ;p $_.split(" ").map{|i|i.to_i}.inject(:+).to_s.size;end

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, i, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != 0) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

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

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%ld\n", std::to_string(a + b).size());
}

C++: #include <iostream>

using namespace std;

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

  return (0);
}

C++: #include <iostream>

int main(){
  int a, b, c;
  int i = 1;
  int num = 0;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

C++:  #include<iostream>
#define END EOF
using namespace std;
int digit(int);
int main(){
  int a,b,x;
  while(cin >>a>>b && a!=EOF){
    x=a+b;
    cout <<digit(x)<<endl;}
    return 0;
}

int digit(int x){
  int count=0;
  while(x>0){
    x/=10;
    count++;
  }
  return count;
}

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

int main(){
  int x, y;

  while(1){
    cin >> x >> y;
    cout << to_string(x + y).length() << endl;
    if(cin.eof()) {break;}
  }

  return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
  int cnt = 0,
      x, y;
  while(cin >> x >> y){
    if(cin.eof())
      break;
    if(x < 0 || y > 1000000 || cnt > 200)
      break;
    cnt = to_string(x+y).length();
    cout << cnt << endl;
  }
  return 0;
}

C++: 
#include <sstream>
#include<cmath>
#include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <iomanip>
#include <cassert>
using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		cout << to_string(a+b).size() << endl;
	}
	return 0;

}

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;
}