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>
#include<vector>
#include<map>
#include<string>
using namespace std;

int get_digit(int num);

int main() {
	int first;
	int second;
	int data_cnt = 0;
	std::vector<int> inputs;

	while (/*(cin >> first >> second) || */(data_cnt < 200)) {
		data_cnt++;
		cin >> first >> second;
		inputs.push_back(first + second);
	}

	for (int i = 0; i < data_cnt; i++) {
		cout << get_digit(inputs[i]) << endl;
	}

	return 0;
}

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

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
using namespace std;
typedef long long ll;
typedef vector<int> vint;
typedef pair<int, int> pint;
#define MOD 1000000007 //10^9+7
#define INF 1000000000 //10^9

int main ()
{
    string str;
    while (getline(cin,str)) {
        bool f=0;
        int a=0,b=0;
        for (int i=0; i<(int)str.length(); i++) {
            if (str[i]==' ') f=1;
            else if (!f) a=a*10+(str[i]-'0');
            else b=b*10+(str[i]-'0');
        }
        cout<<(int)log10(a+b)+1<<endl;
    }
}

C++: #include <bits/stdc++.h>
#define LL long long
//#define rep(i,n) for (int i=0;i<(n);i++)
#define rep(i,x,n) for (int i=x;i<(n);i++)
using namespace std;
int main(){
	
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int a, b;
	
	while(cin >> a >> b){
		
		int sum = a+b;
		string res = to_string(sum);
		
		cout << res.size() << endl;
	
	}
	return 0;
}

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

int main() {
	long a,b,c,ans;
	for(int i = 0; i <= 200; i++){
		cin >> a >> b;
		if(0 <= a  && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

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

C++: #include <iostream>
#include <cstdio>
#include <cstring>
using namespace std;
int main(){
  int a, b;
  char s[100];
  while(cin >> a >> b){
    a += b;
    sprintf(s, "%d", a);
    cout << strlen(s) << endl;
  }
  return 0;
}

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		int i = i + j ;
		int count ;

		while( i > 0 )
		{
			i = i / 10 ;
			count ++ ;
		}

		cout << count << endl ;
	}

	return 0 ;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a,b,i,ans,sum=0;
	for(;;){
	cin>>a>>b;
	ans=a+b;
	for(i=0;ans>0;i++){
		ans=ans/10;
		sum=sum+1;
	}
	cout<<sum<<endl;
	}
	return 0;
}

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

using namespace std;

int get(int n){
	int ret=1;
	while(1){
		if(n/10 !=0){
			ret++;
			n/=10;
		}
		else return ret;
	}
}
int main(){
	while(1){
		int a,b;
		if( !(cin>>a>>b) )break;

		int sum=a+b;
		cout<<get(sum)<<endl;
	}
	return 0;
}

C++: #include<cstdio>

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

C++: #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cassert>
#include <vector>
#include <string>
#include <cmath>
#include <map> 
#include <sstream>
#include <cstdio>
#include <complex>
#include <cstring>
using namespace std;
 
const int MAX= 10000100;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()
#define ll long long int
#define gcd(a,b) __gcd(a,b)
#define pb(a) push_back(a)
int GCD(int a, int b) {if(!b) return a; return gcd(b, a%b);}
int lcm(int a, int b) {return a*b / gcd(a, b);}

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

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

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

C++: #include<stdio.h>


int main(){
	char a[21];
	char b[21];
	int A;
	int B;
	int i;
	int l=1;
	fgets(ツ　a,sizeof(a),stdinツ　);
	fgets(ツ　b,sizeof(b),stdinツ　);
	sscanf(a,"%dツ”, &A);
	sscanf(b,"%d", &B);
	i=A+B;
	while(i  >= 10){
		i=i/10;
		l=l+1;
	}
	printf("%d" ,l);
}

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

#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for (int i = x; i < n; i++)
#define OP(m) cout << m << endl;
typedef long long ll;
typedef unsigned long long ull;

int main()
{
    int a, b;
    while (cin >> a >> b)
    {
        int c = a + b;
        OP((int)log10(c) + 1)
    }
    return 0;
}

C++: //-------------
//include
//-------------
#include <map>
#include <list>
#include <cmath>
#include <vector>
#include <string>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
//-------------
//typedef
//-------------
typedef long long LL;
typedef  vector<int> VI;
typedef  string STR;
typedef  pair<int, int> PII;
typedef  vector<int, int> VII;
typedef  map<string, int> MSI;
//-------------
//utillty
//-------------
#define ALL(a)  (a).begin(),(a).end()
#define MK make_pair
#define PB push_back
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define COUT(a) cout<<a<<endl
//-------------
//repetition
//-------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
//-------------
//debug
//-------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define dumpl(c) REP(i,SZ(c))cerr<<#c<<i<<"="<<(c[i])<<endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

const int MOD = 1000000007;
int main()
{
	int a, b;
	while (cin >> a>> b)
	{
		STR c = to_string(a + b);
		int x = c.length();
		COUT(x);
	}
#ifdef _DEBUG
	while(1);
#endif // _DEBUG

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555";
	
	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>
#include<stdio.h>

#define     MAX_NUMBER     200

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int k,i;

	for(k=1;k<=MAX_NUMBER;k++){
		// 値の入力
		cin >> num1 >> num2;
		
		//整形
		sprintf(str,"%d\0",(num1 + num2));

		// 文字数計測
		for(i=0;str[i] != '\0';i++){
		}

		// 文字数表示
		cout << i << endl;
	}

	return 0;
}

C++: #include<stdio.h>
int main()
{
    int a,b,count1=0,count2=0;
    while(scanf("%d %d",&a,&b)==2)
    {

    if(a<=9)
    count1=1;
    if(a>10 && a<=99)
    count1=2;
     if(a>100 && a<=999)
    count1=3;
     if(a>1000 && a<=9999)
    count1=4;
     if(a>10000 && a<=99999)
    count1=5;
    if(a>100000 && a<=999999)
    count1=6;
    if(a==10 ||a==100 ||a==1000 ||a==10000 ||a==100000 ||a==1000000 ||a==10000000)
    count1=1;
    if(b<=9)
    count2=1;
    if(b>10 && b<=99)
    count2=2;
     if(b>100 && b<=999)
    count2=3;
     if(b>1000 && b<=9999)
    count2=4;
     if(b>10000 && b<=99999)
    count2=5;
    if(b>100000 && b<=999999)
    count2=6;
    if(b==10 ||b==100 ||b==1000 ||b==10000 ||b==100000 ||b==1000000 ||b==10000000)
    count2=1;
printf("%d\n",count1+count2);
    }
    return 0;
}