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 <stdio.h>
 
int main()
{
	int a,b;
 
	while(1)
	{
		int kai;
		int i = 1;
		int j = scanf("%d %d" , &a,&b);
		if(j==EOF) break;
 
		kai = a+b;
 
		while(kai > 9)
		{
			kai /= 10;
			i++;
		}
 
		printf("%d\n" , i);
	}
return 0;
}

C++: #include <bits/stdc++.h>

#define times(n, i) uptil(0, n, i)
#define upto(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f) poi i <= _##i poi i++)
#define uptil(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f) poi i < _##i poi i++)
#define downto(f, t, i) for(auto i = (f), _##i = decltype(i)(t) poi i >= _##i poi i--)
#define downtil(f, t, i) for(auto i = (f), _##i = decltype(i)(t) poi i > _##i poi i--)

#define unless(c) if(!(c))
#define until(c) while(!(c))
#define loop while(true)

#define poi ;
#define poipoi << "\n"

using namespace std;

int main(){
    int a, b poi
    while(cin >> a >> b){
        int sum = a + b, i = 0 poi
        while(sum){
            sum /= 10 poi
            i++ poi
        }
        cout << i poipoi poi
    }
    return 0 poi
}

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

int main() {
	int a[3],b[3];
	int ans[3];
	for(int i=0; i<3; i++) scanf("%d %d", &a[i], &b[i]);

	int cnt;
	int keta[3] = {0,0,0};
	for(int i=0; i<3; i++) {
		cnt = a[i] + b[i];
		while(cnt >= 10) {
			cnt/=10;
			keta[i] ++;
		}
		keta[i]++;
	}

	printf("%d\n%d\n%d\n", keta[0], keta[1], keta[2]);

	return 0;
}

C++: #include<iostream>

using namespace std;

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

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