Go: package main

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

func main() {
	sc := bufio.NewScanner(os.Stdin)
	for sc.Scan() {
		str := strings.Split(sc.Text(), " ")
		if len(str) != 2 {
			return
		}
		a, err1 := strconv.ParseInt(str[0], 10, 64)
		b, err2 := strconv.ParseInt(str[1], 10, 64)
		if err1 != nil || err2 != nil {
			return
		}
		a += b
		for b = 0; a > 0; a /= 10 {
			b++
		}
		fmt.Println(b)
	}
}

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

int main()
{
    int a,b,sum;
    string s;
    while(scanf("%d%d",&a,&b)!=EOF){
        s=to_string(a+b);
        cout << s.size() << endl;
    }
    return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int i,cnt=1,a,b,c;
	scanf("%d %d",&a,&b);
	c=a+b;
	for(i=0;c!=0;i++){
		c/=10;
	}
	printf("%d\n",i);
	return 0;
}

C++: import java.util.*;

class Main{
    public static void main(String[] args){
    	Scanner scn = new Scanner(System.in);
    	int a,b;
    	
    	for(;;){
    		a = scn.nextInt();
    		b = scn.nextInt();
    		
    		int i = a + b;
    		int count = 1;
    		
    		for(; i>=10;i/=10,count++);
    		
    		System.out.println(count);
    		
    	}
    }
}

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

using namespace std;

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

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

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

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

int main(){
int a,b;
while(cin>>a>>b){
cout<<log(a+b)-1<<endl;
}

return 0;
}

C++: #include<iostream>

using namespace std;

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

C++: #include <stdio.h>

using namespace std;


int main(){
	int a,b,count,s;

	while(scanf("%d %d",&a,&b)!=EOF){
		count=0;
		s=a+b;
		while(s!=0){
			s/=10;
			count++;
		}
		printf("%d\n",count);
	}

    return 0;
}

C++: #include<iostream>
using namespace std;
class DigitNumber{ 
    public:
        void solve(int a,int b){
            string sum=to_string(a+b);
            if(sum=="0")cout<<0<<endl;
            else cout<<sum.length()<<endl;
        }
};
int main(){
    DigitNumber inst;
    int a,b;
    while(cin>>a>>b){ 
        inst.solve(a,b);
    }
}

C++: //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp
#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>

using namespace std;

void digit(int a, int b){
	int counter = 1;
	int c = a+b;
	while(c/10 > 0){
		counter++;
		c /= 10;
	}
	cout << counter << endl;
	return;
}


int main(){
	int a,b;
	while(cin >> a >> b){
		digit(a,b);
	}
	return 0;
}

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

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

#define     MAX_NUMBER     200

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int k,i;

	for(k=1;k<=MAX_NUMBER;k++){
		// 値の入力
		cin >> num1 >> num2;
		
		//整形
		sprintf(str,"%d\0",(num1 + num2));

		// 文字数計測
		for(i=0;str[i] != '\0';i++){
		}

		// 文字数表示
		cout << i << endl;
	}

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	int a, b, c, i;
	int number = 1;

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

	for(i=0; i++){
		if(c/10 != 0){
			number = number + 1;
		}
		else{
			break;
		}

		cout << number << endl;
	}
}

C++: #include <cstdio>

int main() {
	int a, b;
	char temp[100];

	while (scanf("%d %d", &a, &b) != EOF) {
		printf("%d\n", sprintf(temp, "%d", a + b));
	}

	return 0;
}

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

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

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

using namespace std;

int main(){
  int a,b;
  stringstream c;
  cin >> a >> b;
  c << a+b;
  string str = c.str();
  cout << str.length() << endl;

  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    long long x,y,z;
    int count=1;
    cin >> x >> y;
    z = x + y;
    while(z/=10){
        count++;
    }
    cout<<count<<"\n";
}

C++: #include <stdio.h>
int main()
{
  int a,b,sum,cou;
  while( scanf("%d %d",&a,&b)!=EOF){
    sum=a+b;
    cou=2;
    while(1){      
      sum=sum/10;
      //printf("%d\n",sum);
      if(sum<10)break;
    }
    printf("%d\n",cou);
  }
  return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
int a,b;
while(std::cin >> a >> b){
std::cout << log10(a+b)+1<< std::endl;
}
return 0;
}

C++: #include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main()
{
    int IsB = 0,i = 0;
    char a[20],b[20],*digits;
    while(1){
        char str;
        scanf("%c",&str);
        if(str == EOF)break;
        if(str == ' '){
            i = 0;
            IsB = 1;
        }else if(str == '\n'){
            sprintf(digits,"%d",atoi(a) + atoi(b));
            printf("%d\n",strlen(digits));
        }else if(IsB == 0){
            a[i++] = str;
        }else{
            b[i++] = str;
        }
    }
}

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

void digit(float num, int &n);

void digit(float num, int &n){

	if(static_cast<float>(num)/10.0 >= 1){
		++n;
		digit(num/10, n);
	}else{
		return;
	}

}

int main(){

	int a,b;
	int n;

	while(cin>>a>>b){

		n=1;
		digit(a+b,n);
		cout<<n<<"\n";
	}
	return 0;

}

C++: #include<iostream>
using namespace std;
   
int main(){
   int a[200],b[200],c[200],digit[200];
   int i,imax,j;
   i = 0;
   j = 1;
   for(i=0;i<200;i++)digit[i] = 1;
   while(j){
     cin >> a[i] >> b[i];
     c[i] = a[i] + b[i];
     i++;
     if(a[i]==NULL||b[i]==NULL)
       break;
   }
   
   imax = i;
   
   for(i=0;i<imax+1;i++){
     while(c[i]>=10){
       c[i] /= 10;
       digit[i]++;
     }
   }
   
   for(i=0;i<imax+1;i++)cout << digit[i] << endl;
   
   return 0;
}

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

int main()
{
  int a,b;

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

    if((a+b)/10==0)
      cout<<1<<endl;
    else if(0<(a+b)/10 && (a+b)/10<10)
      cout<<2<<endl;
    else if (0<(a+b)/100 && (a+b)/100<10)
      cout<<3<<endl;
    else if (0<(a+b)/1000 && (a+b)/1000<10)
      cout<<4<<endl;
    else if (0<(a+b)/10000 && (a+b)/10000<10)
      cout<<5<<endl;
    else if (0<(a+b)/100000 && (a+b)/100000<10)
      cout<<6<<endl;
    else if (0<(a+b)/1000000 && (a+b)/1000000<10)
      cout<<7<<endl;
  }

  return 0;
}

C++: #include<cstdio>
#include<vector>
#include<algorithm>
using namespace std;
int main(void){
	int a;
	int b;
	int n;
	int s;
	int c;

 	while (scanf("%d %d", &a,&b) != EOF){
		s = a + b;
		if (s == 0)printf("1\n");
		else{
			for (int i=1;i<10;i++){
				s = s / 10;
				if (s == 0){
					printf("%d\n", i);
					break;
				}
			}
		}

	}

		return 0;
	}

C++: #include <iostream>

using namespace std;
int main()
{
	int a,b;
	while (1){
		cin >> a;
		if (a == EOF) return;
		cin >> b;
		if (b == EOF) return;
		cout << a + b << endl;
	}
}

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

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	int a,b;
	while(cin>>a>>b){
		int sum=a+b;
		int cnt=0;
		while(sum){
			++cnt;
			sum/=10;
		}
		cout<<cnt<<"\n"s;
	}
}