Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(s[0])
		b, _ := strconv.Atoi(s[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

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

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
int main()
{

	string str;
	do
	{

		string item;
		vector<string> list;
		getline(cin, str);


		stringstream ss(str);
		while (getline(ss, item, ' ') && !item.empty()) {
			list.push_back(item);
		}
		int sum = stoi(list[0].c_str()) + stoi(list[1].c_str());
		int count = 0;
		for (int i = 10; i <= 1000000; i = i * 10)
		{
			count++;
			if(sum < i)
			{
				cout << count << endl;
				break;
			}


		}
	} while (str != "");
	return 0;
}