Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

C++: #include <iostream>

using namespace std;

int main()
{
    int a;
    int b;
    int c;


    while(cin >> a >> b)
    {
        c = a+b;
        int digit=0;
        while (c>=1)
        {
            c = c/10;
            digit++;
        }

        cout << digit << endl;
    }



    return 0;
}

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

C++: import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        for (int i = 0; i < 200; i++) {
            int x1 =input.nextInt();
        int x2 =input.nextInt();
        int x3 = input.nextInt();
        String s1 = String.valueOf(x3);
        System.out.println(s1.length());
        }
    }
}

C++: #include <bits/stdc++.h>
using namespace std;

int main() {
    int a, b;

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

      if(a + b == 0){
        break;
      }
      else{
        cout << a + b << endl;
      }
    }
    
}

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

int main(){
  int a,b;
  int an[1000];
  int con[1000];
  int i=0,j,k;

  while(cin>>a>>b){
    an[i] =a + b;
    con[i] = 1;
    while(an[i]>1){
      an[i] /= 10;
      con[i]++;
    }
    i++;
      }
  for(j=0;j<i;j++){
    cout<<con[j]<<endl;
  }

  return 0;

}

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

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

int main() {
	string s1;
	int a, b,c;

	cin >> a >> b;
	c = a + b;

	s1 = to_string(c);
	cout << s1.length() << endl;

	getchar();
	getchar();
	return 0;
}

C++: #include<stdio.h>
#include <math.h>

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

C++: #include <bits/stdc++.h>
using namespace std;

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

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    while(true){
        int a,b;
        cin>>a>>b;
        cout<<(int)(log10(a+b)+1)<<endl;
    }
    return 0;
}

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;

while(scanf("%d %d", &x, &y) != EOF){
cou=0;
w=x+y;
while(1)
{
if(w/10==0){cou++;break;}
else {w=w/10; cou++;}
}
printf("%d\n",cou);
}
return 0;
}

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

int main()
{
   int e[300];
   int i,j,k;
   int cnt=1;
   int a,b;

   for(i=0;cin >> a;i++) {
      scanf("%d",&b);
      e[i]=a+b;
   }
   k=i;
   for(i=0;i<k;i++)
      printf("%d",e[i]);
   return 0;
}

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

int main(){
    int a,b;
    while(true){
        cin >> a >> b;
        cout << to_string(a+b).size() << endl;
    }
}

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

int main(){
	int a,b,i,sum=1;
	cin>>a;
	while(a != EOF){
		cin>>b;	
		a=a+b;
		while(a>10){
			a=a%10;
			sum++;
		}
		cout<<sum<<endl;
		sum=0;
		cin>>a;
	}
    return 0;
}

C++: #include <stdio.h>

#define NUMBER 200

int main(void){
	int i;
	int a,b;
	int sum=0, keta=0;
	
	for(i = 0; scanf("%d%d",&a,&b); i++){
		sum = a + b;
		
		while(sum > 0){
			sum = sum / 10;
			keta++;
		}
		
		printf("%d", keta);
	}
	
	return 0;
}

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

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

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

C++: #include <bits/stdc++.h>
using namespace std;
int counter(int n);

int main(){
    int a, b, n;
    while(scanf("%d%d",&a,&b)!=EOF){
        n=counter(a+b);
        cout<<n<<endl;
    }
    return 0;
}

int counter(int n){
    int count1 = 0;
    while(n > 0)
    {
        // n = n/10
        n /= 10;
        ++count1;
    }
    return count1;
}

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

using namespace std;

 string IntToString(int num){
	stringstream ss;
	ss << num;
	return ss.str();
}


int main(void){
	int count = 0;
	while (count < 200){
		int a, b;
		cin >> a >> b;
		if ((a < 0) || (b < 0)){
			break;
		}

		int sum = a + b;
		string str = IntToString(sum);
		cout << str.length() << endl;
		++count;
	}

	return 0;
}

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

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

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

int main(){
	while(!cin.eof()){
		long int a,b;
		cin >> a >> b;
		long int c = a + b;
		double r = log10(c) + 1;
		long int s = r;
		cout << s << endl;
	}
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	for(int i=0;i<103;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include<iostream>
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>
#include <sstream>

using namespace std;

int main(void){
	int i, j;
	while (cin >> i >> j){
		int tmp = i+j;
		stringstream ss;
		ss << tmp;
		string c = ss.str();
		cout << c.length() << endl;
	}
	return 0;
}

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

string sum(string s, string t){
    reverse(s.begin(), s.end());
    reverse(t.begin(), t.end());
    
    string res;
    int carry = 0;
    int md = max(t.size(), s.size());
    for(int i=0; i<=md; i++){
        int sc = i<s.size()? s[i]-'0': 0;
        int tc = i<t.size()? t[i]-'0': 0;
        int d = sc + tc + carry;
        char nd = '0' + (d%10);
        if(i == md && nd == '0')
            continue;
        res += nd;
        carry = d/10;
    }
    reverse(res.begin(), res.end());
    return res;
}

int main(){
    string s, t;
    while(cin >> s >> t){
        cout << sum(s, t).size() << endl;
    }
    return 0;
}

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