Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

C++:  #include<iostream>
 #include<stdio.h>
 #include<string>
 #include<math.h>
 #include<iomanip>
 #include<algorithm>
 #include<string.h>
 #include<cctype>
 #include<map>
 #include<set>
 #include<vector>
 #include<sstream>
 
 using namespace std;
 
 int compare(int a,int b)
 {
   return a>b;    
 }

 int main()
 {
   int m,n;
   while(cin>>m>>n)
   {
     int sum=m+n;
     int count=0;
     while(sum)
     {
       count++;
       sum/=10;          
     }
     cout<<count<<endl;                
   }
   //while(1);      
   return 0;    
 }

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, i, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		if (sum != 0){
			++ans[cou];
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

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

using namespace std;

int main(void)
{
	vector<int> sum;
	int a, b;

	while(cin >> a >> b){
		sum.push_back(a+b);
	}

	for(int x : sum){
		int d = 1;
		x /= 10;
		while(x > 0){
			x /= 10;
			d++;
		}
		cout << d << endl;
	}

	return 0;
}

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

using namespace std;
int main() {
    int a,b;
    while(cin >> a){

        cin >> b;
        cout << (int)log10(a+b)+1 << endl;
    }
    return 0;

}

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