Go: // 九九を出すだけ
package main
import (
	"fmt"
	"os"
	"bufio"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main(){
	sc.Split(bufio.ScanWords)
	defer out.Flush()
	for sc.Scan(){
	    s := nextIntIs()
	    sc.Scan()
	    t := nextIntIs()
        a := len(strconv.Itoa(s+t))
	    fmt.Fprintln(out, a)
	}
}

func next() string{
	sc.Scan()
	return sc.Text()
}

func nextInt() int{
	a, _ := strconv.Atoi(next())
	return a
}

func nextIntIs() int{
	a, _ := strconv.Atoi(sc.Text())
	return a
}

C++: #include <iostream>
int main(){
	int a,b,c;
	std::cin>>a>>b>>c;
	if(a*a==b*b+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(b*b==a*a+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(c*c==a*a+b*b){
		std::cout<<"YES"<<std::endl;
		}
	else std::cout<<"NO"<<std::endl;

	
		
	 return 0;
	}

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

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

C++: #include <iostream>
using namespace std;
int main()
{
	int a,b;
	while (a != EOF || b != EOF){
		cin >> a;
		cin >> b;
		cout << a + b << endl;
	}
}

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

int main() {
	int a, b;
	cin >> a;
	cin >> b;
	int sum = a + b;
	int i = 1;
	int count = 0;
	while (sum/i!=0){
		count++;
		i *= 10;
	}
	cout << count;
	return 0;
}

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

int main()
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=2,i=0;

	while( cin >> a[i] >> b[i]){
		i++;
	}

	for(i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		cout << cnt << endl;
		cnt=0;
	}

	return 0;
}

C++: #include<stdio.h>


int main(void){
  int a,b,c,d,e,i,j;
  int n[9999];
  j=0;  
  while(scanf(" %d %d", &a, &b)!=EOF){
   
    c=a+b;d=1;i=0;e=1;
    while(e>0){
      e=c/d;
      //      printf("%d\n",i);
      d=d*10;
      i++;}
    n[j]=i-1;
    
    //printf("input %d %d \n",a,b);
    j++;
  }
  for(i=0;i<j;i++)
    printf("%d\n",n[i]);
	   return 0;
}

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

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

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

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

int main()
{
  while (true) {
    int a, b;
    
    if (!cin >> a >> b) break;
    int c = a + b;
    int i;
    for (i = 1; c != 0; i++) {
      c /= 10;
    }
    cout << i << endl;

  }
  return 0;
}

C++: #include<cstdio>

using namespace std;

int  check_num(int in){
  int a=1,i=0;
  while(in>=a){
    ++i;
    a*=10;
  }
  if(i==0){
    return 1;
  }
  return i;
}

int main(){
  char input[32];
  
  while(fgets(input,32,stdin)!=NULL){
    int num1,num2;
    sscanf(input,"%d %d",&num1,&num2);    
    
    printf("%d\n",check_num(num1+num2));
  }
  
   
  return 0;
}

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

C++: #include<iostream>
using namespace std;
int main()
{
  int a,b,sum,count;
  while( cin >> a >> b ){
    count=0;
    sum = a + b;
    while( sum > 0 ){
      count++;
      sum /= 10;
    }
    cout << count << endl;
  }
}

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

int keta(int x){
	int i=0;
	while (x/pow(10,i)>=1){
		i++;
	}
	return i;
	}
int main(){


	while(true){
int a1,b1;
cin>>a1>>b1;
cout<<keta(a1)+keta(b1)<<endl;
	}
}

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

C++: //#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
    int a,b;
    while(cin>>a>>b)
    {
        int sum=a+b,z=0;
        while(sum!=0)
        {
            z++;
            sum/=10;

        }
       cout<<z<<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 != 0){


			sum /= 10;
			++count;

		}

		cout << count << endl;
	}

return 0;

}

C++: #include<bits/stdc++.h>
#define ll long long
#define ull unsigned long long
using namespace std;
int main()
{
	ll a,b,sum;
	while (scanf("%lld %lld",&a, &b)!=EOF){
		ll c=0;
		sum=a+b;
		while(sum!=0){
			sum=sum/10;
			c++;
		}
		printf("%lld\n",c);	
	}
	return 0;
}

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

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

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

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

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

int main(){
        while(1){
                int a, b;
                scanf("%d %d", &a, &b);
                double temp =log10(a + b);
                cout << floor(temp) << endl;
        }
        return 0;
}

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

C++: #include<iostream>
#include<string>
#include <stdlib.h>
using namespace std;
int main()
{
    long a, b, sum;
    while (!cin.eof())
    {
        int k=0;
        cin>>a>>b;
        sum=a+b;
        while(sum>9)
        {
            sum=sum/10;
            k++;
        }

        cout<<k+1<<endl;

    }
    return 0;
}

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

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

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


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

	return 0;
}

C++: #include<stdio.h>

int main(void){

	int a,b,i,sum;
	char ch;
	
	while(ch=getchar()!=EOF){
		scanf("%d %d",&a,&b);
	
		sum=a+b;
	
		i=1;
		while(sum>9){
			sum=sum/10;
			i++;
		}

		printf("%d\n",i);
	}
}

C++: #include<cstdio>
int main(void){
int a,b,i,s;
while(scanf("%d",&a)!=EOF){
 scanf("%d",&b);
 s=a+b;
 for(i=1;s>0;i++){
  s/=10;
 }
 printf("%d\n",i);
}
return 0;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main(){
  int a,b,ans=0;
  cin >> a >> b;
  a += b;
  while(a >= 1){
    a /= 10;
    ans++;
  }
  cout << ans << endl;
}

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

int datas[2][200] ;
int datanum ;

int sum[200] ;
int solve[200] ;

int main()
{
	cin >> datanum ;

	for( int i = 0 ; i < datanum ; i ++ )
	{
		cin >> datas[0][i] ;
		cin >> datas[1][i] ;

		sum[i] = datas[0][i] + datas[1][i] ;
	}

	for( int i = 0 ; i < datanum ; i ++ )
	{
		for( int j = 1 ; j < 7 ; j ++ )
		{
			if( (sum[i] / 10*j) < 10 )
			{
				solve[i] = j+1 ;
				j = 10 ;

				cout << solve[i] << "\n" ;
			}
		}
	}

	_getch() ;
	return 0 ;
}

C++: #include <bits/stdc++.h>
using namespace std;
int a, b;
int main() {
    while(cin >> a >> b) {
        cout << (int)(log10(a + b)) + 1 << endl;
    }
}