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,b;
    while(cin >> a >> b) {
        int c = a + b;
        int res = 1;
        while (c >= 10) {
            res++;
            c = c / 10;
        }
        cout << res << endl;
    }
    return 0;
}

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

int main()
{
 int a, b;

 while(cin >> a >> b){
  int mas = a + b;
  int n = 0
  while(mas /= 10 != 0) n++;
  cout << n+1 << '\n';
 }

 return 0;
}

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

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

	while (cin >> a >> b){
		c = a + b;
	}

	cout << c;

	return 0;
}

C++: #include<cstdio>
#include<vector>
#include<algorithm>
#include<cmath>

using namespace std;

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

C++: #include <stdio.h>
int main(){
	int a,b,k,n;
	char temp[2];
	while(scanf("%d %d",&a,&b)!=0){
		gets(temp);
		k=1,n=0;
		while(a+b>=k){
			k*=10;
			n+=1;
		}
		printf("%d\n",n);
	}

	return 0;
}

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

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

using namespace std;

int main()
{
  int a, b;
  
  while (scanf("%d%d", &a, &b), a != EOF){
    int cnt = 1;
    for (int i = a + b; i >= 10; cnt++) i /= 10;
    
    printf("%d\n", cnt);
  }

  return (0);
}

C++: #include <iostream>
#include <sstream>
int main()
{
        for(uint8_t i=0;i<200;i++)
        {
                std::string str;
                getline(std::cin, str);
                if(str=="EOF")
                        break;
                std::stringstream s(str);
                uint32_t a,b;
                s>>a>>b;
                uint32_t sum=a+b;
                uint8_t count;
                for(count=0;sum>0;count++)
                        sum=sum/10;
                if(count==0)
                        count++;
                printf("%u\n",count);
        }

        return 0;
}

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

using namespace std;

int main()
{
    string ans;
    int a, b;
    cin >> a >> b;

    cout << to_string(a + b).length() << endl;
}

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

int main()
{
	int a,b;
	while(~scanf("%d%d",&a,&b))
	{
		int c;
		int i;
		c=a+b;
		while(c)
		{
			i++;
			c /=10;
		}
		cout<<i<<endl;
	
	}
	return 0;
}

C++: #include <cstdio>

using namespace std;

int main(){
	int a,b;
	int sum=0;
	int i;
	while(scanf("%d %d",&a,&b)!=EOF){
		sum=a+b;
		for(i=0;sum!=0;i++){
			sum/=10;
		}
		printf("%d\n",i);
		sum=0;
	}
	return 0;
}

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

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

int main(){
     int a,b;
     while (!cin.eof()){
        cin>>a>>b;
        cout<<a+b<<endl;
     }
     return 0;
}

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



int main(void){

	int a, b,sum=0,count;

	for (;cin;){//??°????????????????????°?????????
		count = 0;
		cin >> a >> b;
		sum = a + b;

		while(sum>9){
			
			sum /= 10;
			count++;

		} 
		//?????°???count?????°
		cout << count+1 << endl;

	}
	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int x=0,n,a,b;
	int sum[200]={0},keta[200]={0};

	while(scanf("%d %d",&a,&b)!=EOF)
	{
		sum[x]=a+b;
		x++;
	}

	for(n=0;n<x;n++)
	{
		while(sum[n]!=0)
		{
			sum[n]=sum[n]/10;
			keta[n]++;
		}
		printf("%d\n",keta[n]);
	}

	return 0;
}

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

int main() {
  long long int a, b;
  while(cin >> a >> b) {
  long long int sum = a+b;
  //cout << sum << endl;
  

  int cnt = 1;
  while(sum /= 10) cnt++;

  cout << cnt << endl;
  }
}

C++: #include <algorithm>
#include <iostream>
#include <vector>

using namespace std;

typedef long long ll;
typedef pair<ll, ll> P;

#define MOD 1000000007
#define REP(i, N) for (int i = 0; i < N; ++i)
#define REP1(i, N) for (int i = 1; i <= N; ++i)
#define RREP(i, N) for (int i = N - 1; i >= 0; --i)
#define ALL(a) a.begin(), a.end()

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

C++: 
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define REP(i,j,n) for(int i = j; i < n; i++)


int main(){

	int a,b;
	int sum = 0;
	cin >> a >> b;

	sum = a + b;

	int x = 1;

	while(sum / 10 > 0){
		x++;
		sum = sum / 10;
	}

	if(x != 0){
		cout << x << endl;
	}
	else{
		cout << 0 << endl;
	}
	return 0;
}

C++: #include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a,b;
	cin >> a>>b;
string  ss;
string ss="";
  ss << a+b;
   string x=ss.str();
cout<<x.size()<<endl;
return 0;
}

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

C++: import java.util.*;

class Main{
public static void main(String[] args){
int a;
int b;
Scanner sc=new Scanner(System.in);
while(sc.hasNextInt()){
a=sc.nextInt();
b=sc.nextInt();
int d=(int)Math.log10(a+b);
System.out.println(d);
}
}
}

C++: 
#include <iostream>
#include <stdio.h>
#include <string>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <math.h>
#include <list>
#include <algorithm>

using namespace std;

int main(void){
	//FILE* fp_in = freopen("data.txt", "r", stdin);

	int a,b;
	while( scanf("%d%d",&a,&b) != -1 ) {
		stringstream s;
		s << (a+b);
		cout << s.str().length() << endl;
	}

	//while(1){}
	return 0;
}

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b) != EOF){
		int i = 0;
		a += b;
		while(a > 0){
			a /= 10;
            i++;
		}
		cout << i << endl;
	}
}

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

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

C++: #include<stdio.h>

int main(){
  int n = 2;
  while(n == 2){
  int a, b;
  char buf[20];
  fgets(buf, sizeof(buf), stdin);
  n = sscanf(buf, "%d%d", &a, &b);
  printf("%d\n", a+b);
  }
  //printf("\n");
  return 0;
}

C++: #include<iostream>
#include<string>
#include<cmath>
#include<algorithm>
using namespace std; 
int main(){
  int a,b;
  
  while(cin>>a>>b){

     cout<<(a+b)/10+1<<endl;
  }


  return 0;
}