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++: #include<iostream>
using namespace std;

int main(){
	int c,i,j ;
	//int c[3];
	int a[10],b[10],d[10];

	for(j=0;j<3;j++){

	cin >> a[j] >> b[j] ;

	c = a[j] + b[j] ;

	//桁数計算の処理
	for(i=1;i<7;i++){
		c = c / 10 ;
		if(c == 0){
			d[j] = i ;	
			break;
		}
	}
	}

	for(i=0;i<3;i++){
		cout << d[i] << endl ;
	}

	

    return 0;
}

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

using namespace std;
main(){
	int a,b;
	while(cin >> a >> b){
	int s=1;
	int g=0;
	int d=a+b;
	while(d >= 1){
		d=d/10;
		g=g+1;
		}
		printf("%d\n",g);
	}
}

C++: #include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<int,int> P;
typedef pair<P,P> PP;
const ll MOD=10000;
const ll INF=1000000000;
const int MAX=100001;
int dx[4]={0,1,0,-1};
int dy[4]={1,0,-1,0};
ll keta(ll n){
    int d=0;
    while(n>0){
        n/=10;
        d++;
    }
    return d;
}
int main(){
    int a,b;
    while(cin>>a>>b){
    cout<<keta(a+b)<<endl;
    }
    return 0;
}

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

int main(int argc, char* argv[])
{
	ifstream fin(argv[1]);
	int a,b;
	int count;
	int wa;
	while(!fin.eof()){
		fin >> a >> b;
		count = 1;
		wa = a + b;
		while(wa/10 != 0){
			count++;
			wa /= 10;
		}
		cout << count << endl;
	}
	return 0;
}

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

int main()
{
  long n1, n2;
  int ans = 0;
  while(cin >> n1 >> n2){
    long sum = n1 + n2;
    ans = 0;
    while(sum > 0){
      sum /= 10;
      ans++;
    }
    ans = (n1 == 0 & n2 == 0) ? 1 : ans;
    cout << ans << endl;
  }
}

C++: #include<stdio.h>
int main()
{
while(true)
	{
		int a,b;
		scanf("%d %d",&a,&b);
		if(a==EOF || b==EOF)
			break;

		int temp=a+b;
		int ans=1;
		while((temp/=10)>=10)
		{
			ans++;
		}
	printf("%d\n",ans);
	}
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    int a, b;
    while(~scanf("%d%d", &a, &b)){
        string s = to_string(a+b);
        printf("%d\n", s.length());
    }
}

C++: //泥臭いなあ
#include <iostream>
#include <cstdio>

int main()
{
        using namespace std;
        long int a,b;
        unsigned long int div;

        cin >> a >> b;
        div = (a+b)/10;

        if(div == 0)cout << 1;
        else if(1 <= div && div <= 9)cout << 2 ;
        else if(10 <= div && div <= 99)cout << 3;
        else if(100 <= div && div <= 999)cout << 4;
        else if(1000 <= div && div <= 9999)cout << 5;
        else if(10000 <= div && div <= 99999)cout << 6;
        else if(100000 <= div && div <= 200000)cout << 7;

        return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<unistd.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 <iostream>
using namespace std;
int main()
{
	int a,b;
	while (1){
		cin >> a;
		if (a == EOF) break;
		cin >> b;
		cout << a + b << endl;
	}
}

C++: #include<iostream>

int main(void){
	int a,b,c,count=1;
	std::cin >> a >> b;
	c = a+b;
	do{
		c = c/10;
		count++;
	}while(c>1);
	std::cout << count << std::endl;
	return 0;
}

C++: #include <iostream>
int main()
{
    int a;
    int b;
    while(std::cin >> a >> b)
    {
        int number = 1;
        int data = a + b;
        for(int i = 0;;i++)
        {
            if(data / 10 != 0)
            {
                number += 1;
                data /= 10;
            }
 
            else if(data / 10 == 0)
            {
                break;
            }
        }
        std::cout << number << '\n';
    }
}

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

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

C++: /* AOJ0002 Digit Number */

#include <stdio.h>

int sum_digits(int n, int base)
{
    int count = 0;

    while(n) {
        count++;
        n /= base;
    }

    return count;
}

int main(void)
{
    int a, b;

    while(~scanf("%d%d", &a, &b))
        printf("%d\n", sum_digits(a + b, 10));

    return 0;
}

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

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

using namespace std;

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

    while(cin>>a>>b){
        s = a+b;
        int t = log10(s) +1 ;
        cout << t << endl;
    }
    return 0;
}

C++: 
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
    int a,b,c,count=0;
    stringstream s;
    while(cin>>a>>b){
    c=a+b;
    s<<c;

    for(int i=0;i<s.str().size();i++){
        count++;
    }
    cout<<count<<endl;
        s.str("");
        count=0;
    }
    
    return 0;
}

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

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

C++:      #include <iostream>
    #include <math.h>
    using namespace std;
     
    int main() {
    int a,b,c;
    while(cin>> a>>b){
    c=a+b;
    int d;
    for(int i=0;i<8;i++){
    if(pow(10,i)<=c && c<pow(10,i+1)){
    d=i+1;
    }
    cout<< d <<endl;	
    }
    }
    return 0;
    }