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<iostream>
using namespace std;

int main(void){

  int num,num1,num2,count;

  while(cin >> num1 >> num2){
    num = num1 + num2;
    count = 0;
    while(num >= 10){
      num = num / 10;
      count++;
    }

    cout << count + 1 << endl;
  }
  return 0;

}

C++: #define _USE_MATH_DEFINES

#include <iostream>
#include <sstream>
#include <string>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
#include <numeric>

using namespace std;

template <typename T> string to_string(const T& n)
{
	std::ostringstream stm;
	stm << n;
	return stm.str();
}

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

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(i=0;i<200;i++){
	scanf("%d %d",&x,&y);
	if((x+y) < 10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else if((x+y)<1000000)printf("6\n");
	else printf("7\n");
	}
	return 0;
}

C++: #include<stdio.h>

int main() {

	int keta = 0;
	int input = 0, input2 = 0;
	int a = 0;

	while(scanf("%d %d", &input, &input2) != EOF) {

		a = input + input2;

		if(a == 0) {
			keta = 1;
		}

		while( a != 0 ) {

			a = a / 10;
			keta++;
		}

		printf("%d\n", keta);

		keta = 0;
	}

	return 0;
}

C++: #include <bits/stdc++.h>
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;
    }
}

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

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

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

int main(){
    int a,b,c;
    while(cin >> a >> b){
        c = a + b;
        string str = to_string(c);
        cout << str.length() << endl;
    }
    return 0;
}

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

int main(){

	int a,b;
	while(cin >> a >> b){
		int ans = 0;
		a = a + b;

		while(a > 0){
			a = a / 10;
				++ans;
		}
		cout << ans << '\n';
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a;
	int b;
	while(1){
		cin >> a >> b;
		if(a == EOF){
			exit(0);
		}
		a += b;
		int count = 0;
		while(a>0){
            a/=10;
            count++;
        }

        cout << count << endl;
    }
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	int a,b;
	cin>>a>>b;
	if(0 <= a+b&&a+b < 10){
		cout<<"1"<<endl;
	}else if(10 <= a+b&&a+b < 100){
		cout<<"2"<<endl;
	}else if(100 <= a+b&&a+b < 1000){
		cout<<"3"<<endl;
	}else if(1000 <= a+b&&a+b < 10000){
		cout<<"4"<<endl;
	}else if(10000 <= a+b&&a+b <100000){
		cout<<"5"<<endl;
	}else if(100000 <= a+b&&a+b < 1000000){
		cout<<"6"<<endl;
	}else if(1000000<=a+b&&a+b<10000000){
		cout<<"7"<<endl;
	}

}

C++: #include <iostream>

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

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

int main()
{
	int a, b;
	while(scanf("%d %d", &a, &b) != EOF)
	{
		char len[10];
		sprintf(len, "%d", a + b);
		string sum(len);
		cout << sum.size() << endl;
	}
	return 0;
}

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

C++: #include<cstdio>

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755555";
	
	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<iostream>
using namespace std;
int main(){
  int a,b,i;
  int c=a+b;
  int d=0;
  int n;
  1<=n<=200;
  for(int i=i;i<=n;i++)
    cin >> a >> b;
    while(c!=0){
      c=c/10;
      d=d+1;
    }
    cout << d << endl;
  }
}

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

C++: #include<cstdio>
#include<string.h>
int main(){
   int a,b;
   char s[256],cmd[256];
   while(1){
             fgets(s,256,stdin);
             sscanf(s,"%s",cmd);
             if(strcmp(cmd,"EOF")==0){  
                        break;
             }
  
             sscanf(s,"%d %d",&a,&b);
             int c=a+b,counter=0;
             while( ((int)c/10)>=1){
                         counter++;
                         c=(int)c/10;
              }

              printf("%d\n",counter+1);
   }
  return 0;
}

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

int main(void){
    std::vector<int> a,b;
    int x,y,z;
    while(std::cin>>x>>y){
      a.push_back(x);
      b.push_back(y);
    }
    for(int i=0;i<a.size();i++){
      while(z!=0){
        z = (a[i]+b[i])/10;
      }
      std::cout<<z<<"\n";
    }
    return 0;
  }

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

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

C++: #include<iostream>

using namespace std;

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

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

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

C++: #include<cstdio>
#include<math.h>

using namespace std;

int countDigit(int num){
	int i;
	for(i=1;pow(10,i)<=num;i++);
	return i;
}

int main(){
    int i,a,b;
    while(true)
        scanf("%d %d",&a,&b);
        printf("%d\n",countDigit(a+b));
    }
    return 0;
}

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


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

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

int main() {
	float a,b,sum;
	int t=201;
	while(t--)
	{
		int cont=0;
		do
		{
		cin>>a;cin>>b;
		}while(a<0||a>1000000||b<0||b>1000000);
		sum=a+b;
		do
		{
			sum=sum/10;
			cont++;
		}while(floor(sqrt(sum))!=0);
		cout<<cont<<endl;
	}
	return 0;
}

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

int keta(int i){
	if(i<10){
		return 1;
	}else{
		return 1+keta(i/10);
	}
}

int main(){
	while(!cin.eof()){
	int a,b;
	cin >> a >> b;
	cout << keta(a+b) << endl;
	}
	return 0;
}