Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

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

int main(){

  int a,b;

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

  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	while(cin>>a>>b)
	{
		cin>>a>>b;
		int c =7;
		for (int d =1000000;d>=0;d=d/10)
		{
			cout<<d<<endl;
			if((a+b)/d>=1)
		   {
			break;
		}
			else c=c-1;
			}
	}
}

C++: #include <stdio.h>
int main( void ){
do{
	int a,b;
	scanf( "%d %d",&a,&b );  
	a = a + b;   
	int n = 1;  
	int j = 0;  
	while( true ){    
		if( a / n >= 1 ) n *= 10;    
		else               break;  
		j++;  
		}  
	printf( "%d",j ); 
}while( l < 200;l++ );
	return 0;
}

C++: //ツ禿アツ青蚤,bツつェツ禿シツ療債つウツづェツつスツづつォツ、a+bツづ個個青板づーツ出ツ療債つケツづヲ
//ツ禿シツ療債づ個終ツづュツづィツづ孔OFツづ表ツつウツづェツづゥ

#include<iostream>
using namespace std;

int CountDigit(int x)
{
	int digit = 0;
	while(x)
	{
		x/=10;
		digit++;
	}
	return digit;
}

int main(void)
{
	int a, b;
	while(cin >> a >> b)
	{
		cout << CountDigit(a+b) << endl;
	}
	return 0;
}

C++: #include <cstdio>
#include <iostream>
#include <cmath>

using namespace std;

int main(void)
{  
  int a, b;
  int num, count;
  while (scanf ("%d %d", &a, &b) != EOF){
    num = a + b;
    count = 0;
    while (num != 0){
      num = num / 10;
      count++;
    }
    printf("%d\n", count);
  }

  return 0;
}

C++: #include <cstdio>

using namespace std;

int main() {
	long a, b;
	
	while (scanf("%ld %ld", &a, &b) != EOF) printf("%ld\n", a + b);
	
	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;



int main()
{	
	int a,b;
	string s;
	stringstream ss;
	while(cin>>a>>b)
	{
		ss<<a+b;
		ss>>s;
		ss.clear();
		cout<<s.length()<<endl;
	}
	return 0;	
}

C++: #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
 int a, b, c, count = 0;
 cin >> a >> b;
 c = a + b;
 while(c != 0){
  c = c / 10;
  count++;
 }
 cout << count << endl;

 return 0; 
}

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

int main(){
    
    int a,b,c,t;
    
    while(cin>>a>>b){
        c=a+b;
        t=0;
        while(c!=0){
            c /=10;
            t++;
        }
        cout<<t<<endl;
    }
}

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

int main()
{
	int a,b;

	int sum;

	while(std::cin >> a >> b)
	{
		sum=a+b;

		for(int i=1;;++i)
		{
			if(sum/(int)pow(10.0,i)==0)
			{
				std::cout << i << '\n';
				break;
			}
		}
	}
}

C++: #include <stdio.h>
#include <iostream>

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
  return 0;
}

C++: // 失敗するからこそ そこから立ち向かって行く強さがあってそんな強さが本当の強さだと私は思うから
#ifdef DAIJOBU
#include "/home/v-o_o-v/deb.h"
#define deb(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#include <bits/stdc++.h>
#define deb(x...)
#endif 

using namespace std;

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);

	int a, b;
	while(cin >> a >> b){
		int sum = a + b;
		cout << to_string(sum).size() << '\n';
	}
	return 0;
}
// Write Here

C++: #include <stdio.h>

int main(void){
	int a,b;
	int sum;
	int loop_i,loop_j;
	int cnt=0;

	while(scanf("%d %d",&a,&b) != EOF){
		sum = 0;
		sum = a+b;
		do{
			sum = sum/10;
			cnt++;
			if(sum == 0)
				break;
		}while(1);
		printf("%d\n",cnt);
	}
	return 0;
}

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

int main(){
	int a , b , c;
	int d = 1;
	while(cin >> a >> b){
		d = 1;
		c = a + b;
		while(1){
			if (c / 10 >= 1){
				c = c / 10;
				d++;
			}else{
				break;
			}
		}
		cout << d << endl;
	}
	return 0;
}

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

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

int main() {
	__int64 a, b, c;
	int x;
	bool flg = true;

	while (1) {
		cin>>a;
		if (a==EOF)
			break;

		c=a+b;

		x = 1;
		flg = true;
		while (flg) {
			if ((c=c/10)>0)
				x++;
			else
				flg = false;
		}
		cout<<x<<endl;
	}
	return 0;
}

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

int main(){
	int out[200];
	int n, m;
	int count = 0;
	while(cin >> n >> m){
		for(int i = 0; i < 100; i++){
			if(pow(10.0,i) <= n+m){
				out[count] = i;
				break;
			}
		}
		count++;
	}
	for(int i = 0; i < count; i++){
		cout << out[i] << endl;
	}
}

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

int main(){
  unsigned a, b;

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

  return 0;
}

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

int main(){
  int a,b;
  while(cin>>a>>b){
    int ans;
    int tmp = a+b;
    string str = to_string(tmp);
    ans = str.size();
    cout << ans << endl;
  }
}

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

int main(void) {
    string str;
    while(getline(cin, str)) {
        int a, b;
        scanf("%d %d", &a, &b);

        int sum = a + b;

        int c = 1;
        int d = 10;
        int z = sum / d;

        while (z != 0) {
            d = d * 10;
            z = sum / d;
            c++;
        }
        printf("%d\n", c);
    }
    return 0;
}

C++: #include <iostream>
#include <stdio.h>

int main(){
	int cnt,a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		cnt=0;
		for(int i=10;;i*=10){
			if((a+b)/i==0){
				std::cout<<cnt<<'\n';
				break;
			}
			cnt++;
		}
	}
	return 0;
}

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

int main() {
    long a;
    long b;

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

        int result = 0;
        do {
            c /= 10;
            result++;
        } while(c != 0);

        cout << result << endl;
    }

    return 0;
}

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

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

C++: #include <cstdio>
#include <cstring>

int main() {
    int a, b;
    char nah[100];
    while ( scanf("%d %d", &a, &b) != EOF ) {
          sprintf(nah, "%d", a + b);
          printf("%d\n", strlen(nah));
    }
    return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
    int a, b;

    while (cin >> a >> b) {
        int c = a + b;
        int d = 0;

        while (c > 0, d++, c /= 10);

        cout << d << endl;
    }

    return 0;
}

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

int main(){
    int a, b, sum, digit;
    while(cin >> a >> b){
        sum = a + b;
        digit = 0;
        while(digit){
            sum = sum \ 10;
            digit++;
        }
        if(digit == 0){ digit = 1; }
        cout << digit << endl;
    };
    return 0;
}

C++: #include <cstdio>
#include <cmath>
#include <iostream>

using namespace std;

int main (void) {
  int a, b, c;
  char dummy[8];
  
  while(1) {
    cin >> a >> b;
  
    if(cin.eof()) return 0;

    c = a + b;

    cout << sprintf(dummy, "%d", c) << endl;
  }
  return 0;
}