Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

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

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

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

C++: #include <iostream>

int main(int argc, char const *argv[])
{
	
	while(!std::cin.eof()){
		int a,b;
		std::cin >> a >> b;
		int p = 10;
		int i = 1;
		while((a+b)/p != 0){
			i ++;
			p *= 10;
		}
		std::cout << i << std::endl;
	}
	return 0;
}

C++: #include<stdio.h>
#include <stdlib.h>
#include<iostream>
#include<cstring> // ??????????????????????±???????????????????
using namespace std;

int main(){
	int a,b,s=0,l;
	while( cin >> a >> b  ){
		char str[100];
		s=a+b;
		itoa(s,str,10); // s???10?????°??§??????????????????
		l = strlen(str); // ???????????????????????????
		cout << l << "\n";
	}
	return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
    int a,b;
    char s[100];
    while(scanf("%d%d",&a,&b)!=EOF)
    {
        sprintf(s,"%d",a+b);
        printf("%d\n",strlen(s));
    }
    return 0;
}

C++: //
// Created by tac on 2016/10/27.
//

#include <cstdlib>
#include <iostream>
#include <cmath>

namespace {
int digit(int n) {
    return static_cast<int>(std::floor(std::log10(n)) + 1);
}
}

int main() {
    int a, b;
    while (true) {
        if (std::cin.eof()) {
            break;
        }
        std::cin >> a >> b;
        std::cout << digit(a + b) << std::endl;
    }
    return EXIT_SUCCESS;
}

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(a<1200) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

int main(){
	int a,b;
while(cin>>a>>b){
	}
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

C++: #include <iostream>
using namespace std;
int ans[10];

int main() {
	int a,b;
	while(cin >> a >> b){
		if(cin.eof())break;
	int sum = a+b;
	int j=1;
	int i=1;

	while(i){
		if(sum/=10){
			j++;
		}else{
			cout << j << "\n";
			break;
		}
	}
	}
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77677";
	
	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;
}