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

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

C++: #include <iostream>

using namespace std;

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

C++: #include "iostream"
using namespace std;

int main()
{
	unsigned int i=0,j[30],k[30];
	cin>>j[i]>>k[i];
	while(j[i]!=EOF && k[i]!=EOF)
	{
		i++;
		cin>>j[i]>>k[i];
	}
	for(i=0;i<30&&j[i]!=EOF&& k[i]!=EOF;i++)
		cout<<(j[i]+k[i])<<endl;
	return 0;
}

C++: #include<iostream>

int getDigit(int x);

int main(){
	int a, b;
	
	while(std::cin >> a >> b){
		int n = a + b;
		std::cout << getDigit(n) << std::endl;
	}
	
	return 0;
}


int getDigit(int x){
	int digit = 0;
	
	while(x >= 1){
		x /= 10;
		++digit;
	}
	
	return digit;
}

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

int main()
{
 int a, b;

 while(cin >> a >> b){
  int mas = a + b;
  int n = 0;
  while(true){
   n++;
   mas /= 10;

   if(mas == 0) break;
  }
  cout << n << '\n';
 }

 return 0;
}

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

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

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

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

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

int main()
{
	int a,b,sum;
	int count = 1;

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

		sum = sum / 10;
		count++;
	}

	cout << count << endl;


	return 0;
}

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

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

C++: #include<iostream>
using namespace std;
int main() {
	int x,y,z;
	for(int i=0;i<200;i++){
		cin>>x>>y;
		z=x+y;
		if(z<10){
			cout<<1<<endl;
		}else if(z<100){
			cout<<2<<endl;
		}else if(z<1000){
			cout<<3<<endl;
		}else if(z<10000){
			cout<<4<<endl;
		}else if(z<100000){
			cout<<5<<endl;
		}else if(z<100000){
			cout<<6<<endl;
		}else if(z<1000000){
			cout<<7<<endl;
		}
	}
return 0;
}

C++: #include <iostream> //üoÍ
#include <vector>   //®Izñ

using namespace std;

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

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

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

C++: #include <iostream>
using namespace std;
int main(){

	int a,b;
	int i=0;
	while(i<200){
		cin>>a>>b;
		int c = a+b;
		int d = 1;
		int e = 10;
		for(int j=0;j<6;j++){
			if(c == 0){
				cout<<1<<endl;
			}else if(c >= d && c < e){
				cout<<j+1<<endl;
			}
			d = d * 10;
			e = e * 10;
		}
		i++;
	}
	
	return 0;
}

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

using namespace std;

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

C++: #include <iostream>

using namespace std;

int main(int argc, char const *argv[]) {
	int a, b;
	int ans = 0;
	cin >> a >> b;

	int sum = a + b;
	for (int i = 0; sum >= 1; i++, ans++) sum /= 10;

	cout << ans << endl;
	return 0;
}

C++: /***

            Bismillahir Rahmanir Rahim
            Read the name of Allah, who created you!!!
            Author : Shah Newaj Rabbi Shishir
            Department of CSE, City University, Bangladesh.

***/

#include <iostream>
#include <cctype>
#include <cstdlib>
#include <cstdio>
#include <string>
#include <cstring>
#include <algorithm>
#include <cmath>
#include <stack>
#include <queue>
#include <vector>
#include <map>
#include <iterator>
#include <sstream>
#include <iomanip>
using namespace std;

#define sf scanf
#define pf printf

int main ()
{
    int a,b,sum;

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

        int k = 0;

        while (sum != 0)
        {
            sum /= 10;
            k++;
        }

        cout << k << endl;
    }

    return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	int a,b,k,n;
	while(cin>>a>>b){
		k=1,n=0;
		while(a+b>=k){
			if(a+b==0){
				n=1;
				break;
			}
			k*=10;
			n+=1;
		}
		cout<<n<<endl;
	}
	return 0;
}

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

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

C++: main(a,b,i,x){for(;scanf("%d%d",&a,&b)!=-1;){for(x=a+b,i=1;x=x/10;i++);printf("%d\n",i);}}

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

using namespace std;

int main(){
	int a,b;
while(cin>>a>>b){
	}
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>99){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

C++: #include <iostream>

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

C++: #include<stdio.h>
#define N 200

struct{int a,b;} d[N];

int main(){
    int i,j,l,s,k;
    for(i=0; i<N; scanf("%d %d",&d[i].a,&d[i].b),i++){
        if(d[i].a==NULL)break;
    }
    l=i;
    for(i=0;i<l;i++){        
        s=d[i].a+d[i].b;
        for(j=1,k=0; s>=j; j*=10,k++);
        printf("%d\n",k);        
    }
    return 0;
}

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

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

int main()
{
	string strNumber;
	long long int iNumberA,iNumberB,iLength[256],i=0;

	while( i < 200 ){
		cin >> iNumberA;
		cin >> iNumberB;

		strNumber = to_string( iNumberA+iNumberB );

		iLength[i] = strNumber.length();

		i++;
	}

	for( int i=0;i<200;i++ ){
		if( iLength[i] == 0 ) break;

		cout << iLength[i] << endl;
	}

	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;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		printf("%d\n", ans[cou]);

		++cou;
	}
	for (i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
		string S=to_string(a+b);cout<<S.size()<<endl;
	}
	return 0;
}