Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

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

using namespace std;

int main() {
    int a, b;
    char c[10];
    while (cin >> a >> b) {
        sprintf(c, "%d", a+b);
        int i = 0;
        while (c[i] != '\0') {
            ++i;
        }

        cout << i << endl;
    }

    return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<string>
using namespace std;
	int main(){
		int a,b;
		cin>>a>>b;
		int ans=a+b;int c=1;
		while(true){
			if(ans/10>=1){
				ans=ans/10;
				c++;
			}
			else if(ans/10==0)break;
		}
		cout<<c<<endl;
	return 0;
	}

C++: #include <iostream>

using namespace std;

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

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

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

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

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

C++: #include<cstdio>
using namespace std;
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF){
int x=a+b;
for(int i=0;i<8;i++){
if(x<(1ei)){ printf("%d\n",i);}
}
}
return 0;
}

C++: #include<math.h>
#include<iostream>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
#define INF (1<<30)

using namespace std;


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

C++: #include<iostream>
#include<cmath>
#include<algorithm>
#include<string>
#include<cctype>
#include<vector>
#include<queue>
#include<map>
using namespace std;

int main() {
	int a, b;

	while (cin >> a >> b) {
		cout << (int)log10(a + b) + 1 << endl;
	}

	return 0;
}

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

int main()
{
	int a,b,c,count = 0;
	char dummy[10];
	
	cin >> a >> b;
	c  = a + b;
	
	count = sprintf(dummy,"%d",c);
	
	cout << count << endl;
	
	return 0;
}

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

int main() {
	int a,b,c,d,e;
	cin>>a>>b;
	c=a+b;
	d=c;
	e=1;
	while(true){
		if(d<10){
		break;
		}
		d=d/10;
		e=e+1;
	}
	cout<<e;
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int N, M=0;
int main () {
	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	while (cin>>N>>M) {
		N+=M+1;
		if (N==1) {
			cout<<1<<endl;
		}
		else cout<<ceil(log(N)/log(10))<<endl;
	}
}

C++: // 0002.cpp : ??????????????? ??¢????????±????????§????????¨????????? ?????????????????????????????????
//

#include <algorithm>
#include <cassert>
#include <cctype>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>

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

}

C++: #include <iostream>
#include <string>
using namespace std;
int main(void)
{
    int a, b;
    while(cin >> a >> b)
    {
        int c = a + b;
        int i;
        for (i = 0; 0 < c; i++)
        {
            c = c / 10;
        }
        cout << i << "\n";
    }
}

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

	double a,b,i=0,c;

	cin>>a>>b;
	while(i<200||a!=EOF){
		c=a+b;
		if(c*0.000000000000001>=1){
			cout<<"16"<<endl;
		}else if(c*0.00000000000001>=1){
			cout<<"15"<<endl;
		}else if(c*0.0000000000001>=1){
			cout<<"14"<<endl;
		}else if(c*0.000000000001>=1){
			cout<<"13"<<endl;
		}else if(c*0.00000000001>=1){
			cout<<"12"<<endl;
		}else if(c*0.0000000001>=1){
			cout<<"11"<<endl;
		}else if(c*0.000000001>=1){
			cout<<"10"<<endl;
		}else if(c*0.00000001>=1){
			cout<<"9"<<endl;
		}else if(c*0.0000001>=1){
			cout<<"8"<<endl;
		}else if(c*0.000001>=1){
			cout<<"7"<<endl;
		}else if(c*0.00001>=1){
			cout<<"6"<<endl;
		}else if(c*0.0001>=1){
			cout<<"5"<<endl;
		}else if(c*0.001>=1){
			cout<<"4"<<endl;
		}else if(c*0.01>=1){
			cout<<"3"<<endl;
		}else if(c*0.1>=1){
			cout<<"2"<<endl;
		}else
				cout<<"1"<<endl;
		i++;
		cin>>a>>b;
		}
			return 0;
	}

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

int main() {
	int a[200]={};
	int b[200]={};
	int c=0;
	int d=0;
	int output=0;
	
	for(int i=0;i<200;i++){
			cin >> a[200] >>b[200];
	}

	
	for(int i=0;i<200;i++){
		c=a[i]+b[i];
		for(int x=1;x<100;x++){
			for(int y=0;y<x;y++){
				d=d*10;
			}
			if(c<d){
				cout <<x;
				break;
			}
			d=0;
		}
	}
	
	
	
	
	return 0;
}

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

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755555555555555555555555555555555555555";
	
	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(void) {
	long long a, b, s, x;
	while (cin >> a >> b) {
		x = 0;
		s = a + b;
		while (s >= 1) {
			x++;
			s = s / 10;
		}
		cout << x << endl;
	}
	return 0;
}

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

using namespace std;
int a,b;
int s;
int Count;
int main(){
  for(int i = 0;i < 3;i++){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s !=0; s/=10){
    Count++;
  }
  cout << Count<<endl;
  }
}

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


int main(){
	int a;
	int b;
	int c;
	int f = 1;

	cin >> a >> b;

	c = a + b;

	while(1){
		c = c / 10;

		if(c <= 0){
			break;
		}
		++f;
	}

	cout << f;

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	int cnt=0;
	
	while(cin>>a>>b){
		//-----test-----
		if(a==37564) continue;
		
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
		cnt++;
	}
	
	return 0;
}

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


using namespace std;

int main()
{
	int a,b;
	string input;
	int size = 0;
	//cout << "input two numbers" << endl;
	cin >> a >> b;
	b += a;
	input = to_string(b);
	size = input.size();	
	cout << size << endl;
}

C++: #include <string>
#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>


using namespace std;

int digit(int x){
	int res = 0;
	while(x != 0){
		res++;
		x /= 10;
	}
	return res;
}

int main(void) {
	int a, b;
	while(true){
		cin >> a >> b;
		cout << digit(a + b) << endl;
	}
}

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

int main() {
  int a, b;
  while(cin >> a >> b) {
    char buff[100];
    sprintf(buff, "%d", a+b);
    cout << strlen(buff) << endl;
  }
  return 0;
}