Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

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

int main(){

	int a;
	int b;

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

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <cstdio>
#include <vector>
#include <queue>
#include <set>
#include <numeric>
#include <cmath>

using namespace std;

typedef long long int lld;

const lld mod = 1e9+7;
const lld INF = 1e9;
//const lld MAXN = 1e9;

int main()
{
	string a,b;
	while(cin>>a>>b)
	{
		int cnt = 0;
		for(int i = 0; i < a.size(); i++)
		{
			if (a[i]!='0')
			{
				cnt++;
			}
		}
		for(int i = 0; i < b.size(); i++)
		{
			if (b[i]!='0')
			{
				cnt++;
			}
		}
		cout << cnt << endl;
	}

	return 0;
}

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

int main(){
	int a, b;
	while (cin >> a >> b){
		cout << (int)(log10((double)(a + b)) + 1)<< '\n';
	}
	return 0;
}

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

int keta(int i){
	if(i<10){
		return 1;
	}else{
		return 1+keta(i/10);
	}
}

int main(){
	int a,b;
	while(!cin.eof()){
	cin >> a >>b;
	cout << keta(a+b)<<endl;
	}
}

C++: #include<iostream>

int getDigit(int x){
  int digit = 0;

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

int main(){
  const int min = 0;
  const int max = 1000000;
  const int data = 200;
  int a,b,i = 0;
  while(std::cin >> a >> b && i < data){
    if(a >= min && a <= max && b >= min && b <= max)
      std::cout << getDigit(a + b) << std::endl;
  }
}

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

int main()
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=0;

	while( cin >> a[set] >> b[set]){
		set++;
	}

	for(int i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		cout << cnt << endl;
		cnt=0;
	}

	return 0;
}

C++: #include <stdio.h>

int main(){
	int a,b,n=1,c;
	while(scanf("%d %d",&a,&b)!=EOF){
		//scanf("%d %d",&a,&b);
		c=a+b;
		while(1){
			c=c/10;
			n++;
			if(c<10) break;
			
		}
		printf("%d\n",n);
		n=1;
	}
	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <iostream>
#include <vector>
#include <list>
#include <map>
#include<string>
#include <algorithm>
#include <functional>
#include <cmath>
using namespace std;
typedef vector <int> ivector;


int main(){
	int a, b;
	while (scanf("%d,%d", a, b) != EOF){
		int dat=log10(a + b);
		cout << dat << endl;
	}
	

	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

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

	return 0;
}

C++: #include "stdio.h"

int main(){
	int a=0,b=0,c=0,count=0;
	while(1){
	scanf("%d %d",&a,&b);
	c = a + b;
	while(c > 0){
		c = c/10;
		count++;
	}
	printf("%d\n",count);
	count = 0;
	}
}

C++: #include <iostream>
using namespace std;
int main(){
	int a,b;
	int n = 1;
	cin>> a >> b;
	if(a+b >= 10){
		n++;
		if(a+b >= 100){
			n++;
			if(a+b >= 1000){
				n++;
				if(a+b >= 10000){
					n++;
					if(a+b >= 100000){
						n++;
						if(a+b >= 1000000){
							n++;
						}
					}
				}
			}
		}
		cout<< n << endl;
	}
}

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

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

C++: 
#include <iostream>

using namespace std;

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

C++: #include<bits/stdc++.h>
#include<cstdio>
#include<sstream>
#include<cstdlib>
#include<cctype>
#include<cmath>
#include<algorithm>
#include<set>
#include<queue>
#include<stack>
#include<list>
#include<iostream>
#include<fstream>
#include<numeric>
#include<string>
#include<vector>
#include<cstring>
#include<map>
#include<iterator>

using namespace std;
#define EPS 1e-9
#define MAX 505
#define pb push_back
#define mp make_pair
#define ins insert
#define fi first
#define se second
#define pi acos(-1.0)
#define mod 100000007
#define inf 2147483647
#define ll long long int
#define sss stringstream
#define oss ostringstream
#define iss istringstream
#define llu long long unsigned

#define _sq(a) (a)*(a)
#define sz(a) ((int)a.size())
#define gcd(a,b)    __gcd(a,b)
#define lcm(a,b) ((a)*((b)/gcd(a,b)))
#define _max3(a,b,c) max(a, max(b,c))
#define _min3(a,b,c) min(a, min(b,c))
#define FOR(i, n) for(i=0; i<(int)n; i++)
#define FOR1(i, n) for(i=1; i<=(int)n; i++)
#define mem(a) memset(a, 0, sizeof(a))
#define _set(a) memset(a,-1,sizeof(a))
#define FORI(i, a, b) for(i=a; i>=(int)b; i--)
#define FORab(i, a, b) for(i=a; i<=(int)b; i++)
#define popcount(n) __builtin_popcount(n)
#define popcountl(n) __builtin_popcountll(n)
#define sort_rev(a) sort(a.rbegin(), a.rend())
#define sort_all(a) sort(a.begin(), a.end())
#define dis_twopoints(x1,y1,x2,y2) sqrt(_sq(x1-x2) + _sq(y1-y2))
#define foreach(i,n) for(__typeof((n).begin())i =(n).begin();i!=(n).end();i++)

//If Long Long (mask & (1LL << k))
#define check(mask, k) (mask & (1 << k))
#define set1(mask, k) (mask | (1 << k))
#define set0(mask ,k) (mask & (~(1<<k)))

#define SD(a) scanf("%d",&a)
#define SLF(a) scanf("%lf",&a)
#define SC(a) scanf("%c",&a)
#define SS(a) scanf("%s",a)
#define SLLD(a) scanf("%lld", &a)
#define Si64(a) scanf("%I64d", &a)

#define READ(f) freopen(f, "r", stdin)
#define WRITE(f) freopen(f, "w", stdout)
int f[60];
int main()
{
    int a,b,s,t;
    while(cin>>a>>b)
    {
        t=1;
        int n=10;
        s=a+b;
        while(s/n)
        {
            t++;
            n=n*10;

        }
        cout<<t<<endl;
    }
    return 0;
}

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

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

C++: #include <bits/stdc++.h>
#define REP(i,n) for(int i = 0; i < n; i++)
using namespace std;

int main() {
  int a, b;
  while(scanf("%d %d", &a, &b) != EOF) {
    a += b;
    b = 0;
    while(a != 0) {
      a /= 10;
      b++;
    }
    printf("%d\n", b);
  }
  return 0;
}

C++: #include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main(void){
	long long n , i , j , k ;
	while(1){
		cin >> j >> k ;
		int x = j+k;
		stringstream str;
		str << x ;
		string st = str.str();
		cout << st.size() << endl;
	}
}

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

#ifndef EOF
#define EOF (-1)
#endif

int main() {
    std::vector<int> digits;
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF)
    {
        int sum = a + b;
        int t = sum / 10;
        int digit = 1;
        while (t > 0) {
            digit++;
            t = t / 10;
        }
        digits.push_back(digit);
    }

    for (int i = 0; i < digits.size(); i++) {
        std::cout << digits[i] << std::endl;
    }

    return 0;
}