Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

C++: #include<bits/stdc++.h>
using namespace std;
int a, b, c, counter, counter1;
int main(){
	while(cin>>a>>b){
		c=a+b;
		counter=0;
		while(c>0){
			counter++;
			c=c/10;
		}
		cout<<counter<<endl;
	}
	
	
}

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

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

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

int check_digit(int num) {
  int digit = 0;
  while (true) {
    num /= 10;
    digit++;
    if (num <= 0) {
      break;
    }
  }
  return digit;
}

int digit_count(int a, int b) {
  int digit;
  digit = check_digit(a + b);
  return digit;
}

int main(int argc, char const *argv[]) {
  int a, b;
  list<int> ls;
  while (!std::cin.eof()) {
    std::cin >> a;
    std::cin >> b;
    ls.push_back(digit_count(a, b));
  }

  for (int i : ls) {
    std::cout << i << '\n';
  }
}

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

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

C++: #include <iostream>

int main()
{
	int a;
	int b;
	while (std::cin >> a >> b) {
	int c = a + b;
	if (c < 10)
	{
		std::cout << 1 << std::endl;
	} else if (10 <= c && c < 100)
	{
		std::cout << 2 << std::endl;
	} else if (100 <= c && c < 1000)
	{
		std::cout << 3 << std::endl;
	} else if (1000 <= c && c < 10000)
	{
		std::cout << 4 << std::endl;
	} else if (10000 <= c && c < 100000)
	{
		std::cout << 5 << std::endl;
	} else if (100000 <= c && c < 1000000)
	{
		std::cout << 6 << std::endl;
	} else if (1000000 <= c)
	{
		std::cout << 7 << std::endl;
		} 
	}
	return 0;
}

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