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 <stdio.h>
#define N 16
int main(){
	char temp[N];
	int a[200],b[200];
	int i,j,k,n;
	char t[N];
	for(i=0;i<200;i++){
		fgets(temp,N,stdin);
		if(temp[1]!='\0'){
			sscanf_s(temp,"%d %d",&a[i],&b[i]);
		}else{
			j=i;
			break;
		}
		//j=scanf_s("%d %d",&a[i],&b[i]);
		//gets(t);
	}
	for(i=0;i<j;i++){
		k=1,n=0;
		while(a[i]+b[i]>=k){
			k*=10;
			n+=1;
		}
		printf("%d\n",n);
	}
	getchar();
	return 0;
}

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

int main()
{
    int IsB = 0,i = 0;
    char a[20],b[20],*digits;
    while(1){
        char str;
        scanf("%c",&str);
        if(str == EOF)break;
        if(str == ' '){
            i = 0;
            IsB = 1;
        }else if(str == '\n'){
            sprintf(digits,"%d",atoi(a) + atoi(b));
            printf("%d\n",strlen(digits));
        }else if(IsB == 0){
            a[i++] = str;
        }else{
            b[i++] = str;
        }
    }
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b)
        cout<<(int)log10(a+b)+1<<endl;

}

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

int digit(int num) {
    int cnt = 0;
    while(num != 0) {
        cnt++;
        num /= 10;
    }
    return(cnt);
}

int main(void) {
    int a, b;
    
    while(scanf("%d %d", &a, &b) != EOF) {
        cout << digit(a + b) << endl;
    }
    
    return(0);
}

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