Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

C++: #include	<iostream>

using namespace std;

int main(void) {
	while(1) {
		int a, b;
		int sum = 0, g = 1;
		
		cin >> a;
		if( cin.eof() )	{ break; }
		
		cin >> b;
		sum += a + b;
		
		while(sum >= 10) {
			g++;
			sum /= 10;
		}
		cout << g << endl;
	}
	
	return 0;
}

C++: #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, k;
	cin >> a;
	while (a != ' ')
	{
		cin >> b;
		b += a;
		k = 0;
		while(b >= 1)
		{
			b /= 10;
			k += 1;
		}
		cout << k << endl;
		cin >> a;
	}
	return 0;
}

C++: #include<cstdio>
using namespace std;
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF){
int x=a+b;
for(int i=0;i<8;i++){
if(x<(1ei) printf("%d\n",i);
}
}
return 0;
}

C++: #include <cstdio>
using namespace std;
int a,b,s;
int p,cnt,ans;
int scan(){
  if(scanf("%d %d",&a,&b)==EOF) return 0;
  return s=a+b;
}
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(1){
    cnt=1;
    ans=count(scan());
    printf("%d\n",ans);
  }
}

C++: #include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int b[2];
	int count;

	for(i = 0; i < 2; i++){
		scanf("%d", &a[i]);
	}
	i = a[0] + a[1];
		count = 0;
		do{
			count++;
		}while((i = i/10) > 0);

		b[0] = count;

	printf("%d\n", b[0]);
	
	return 0;
	
}

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77675555555";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <iostream>
#include <cstdio>
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>
int main(void)
{
    int array[2];
    std::cin >> array[0] >> array[1];
    array[0] += array[1];
    array[1] = 0;
    do{
        array[0] /= 10;
        ++array[1];
    }while(array[0]);
    std::cout << array[1] << std::endl;
    return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	int a, b;
	cin >> a >> b;
	int c = log10((double)a) + 1;
	int d = log10((double)b) + 1;
	cout << c + d << endl;
}

C++: //
//  main.cpp
//  sanpie
//
//  Created by h3037178 on 2017/07/28.
//  Copyright ?? 2017??´ ?????£?????????. All rights reserved.
//

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    int i,o;
    for(int p=0;p<200;p++){
    cin>>i>>o;
        if(i<1000000||o<1000000){
            break;
        }
    if(i+o<10){
        cout<<"1"<<endl;
    }else if(i+o<100){
        cout<<"2"<<endl;
    }else if(i+o<1000){
        cout<<"3"<<endl;
    }else if(i+o<10000){
        cout<<"4"<<endl;
    }else if(i+o<100000){
        cout<<"5"<<endl;
    }else if(i+o<1000000){
        cout<<"6"<<endl;
    }else{
        cout<<"7"<<endl;
    }
    }
}

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

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

int main(void){
	double n;
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		a+=b;
		n=log((double)a)/log(10.0);
		printf("%d\n",(int)(n+1.0));
	}
	return 0;
}

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

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

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

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

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

int main(){
    int a,b,s;
    while(cin>>a>>b){
        s=a+b;
        if(s<10){
            cout<<"1"<<endl;
        }else if(s<100){
            cout<<"2"<<endl;
        }else if(s<1000){
            cout<<"3"<<endl;
        }else if(s<10000){
            cout<<"4"<<endl;
        }else if(s<100000){
            cout<<"5"<<endl;
        }else if(s<1000000){
            cout<<"6"<<endl;
        }else{
            cout<<"7"<<endl;
        }
    }
    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;
   do{
     cin >> a[i] >> b[i];
     i++;
   }while(a[i]!=NULL||b[i]!=NULL);
     
   imax = i;
   for(i=0;i<imax+1;i++){
     digit[i] = 1;
     c[i] = a[i] + b[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 digit(int a)
{
	int ret = 0;
	while(a)
	{
		a/=10;ret++;
	}
	return ret;
}

int main()
{
	int x,y;
	while(cin >> x >> y && x != EOF)
		cout << digit(x+y) << endl;
}

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

#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

int main(void){
    
    int number1,number2;
    int counter = 0;
    int answer[220] ={-1};
    while(scanf("%d %d",&number1,&number2) != EOF)
    {
        answer[counter]=((((number1+number2) /10))+1);
        counter++;
    }

    REP(i, counter)
    cout << answer[i] << endl;
    return 0;


}

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

using namespace std;

int main(void){
	unsigned int	a,b;

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

		cout << (int)log10(a+b)+1 << endl;
	}

	return 0;
}

C++: #include <stdio.h>

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



 return 0;
}

C++: /*
 * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002
 */
#include <iostream>
#include <sstream>

using namespace	std;

int
main()
{
	string line;
	while (getline(cin, line)) {
		int a, b;
		istringstream iss(line);
		ostringstream oss;
		iss >> a >> b;
		oss << a + b;
		cout << oss.str().length() << endl;
	}
}

C++: #include<cstdio>
using namespace std;
int main()
{
   int n,m,ans,sum;
   while(scanf("%d%d",&n,&m)!=EOF)
   {
       ans=0,sum=n+m;
       while(sum)
       {
           ans++;
           sum/=10;
       }
       //if(!ans)ans++;
       printf("%d\n",ans);
   }
}

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

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