Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

C++: #include <stdio.h>
#include <stdlib.h>
int main()
{
    long a,b;
	while(scanf("%ld%ld",&a,&b)!=EOF){
		long sum=a+b;
		int count=0;
		while(sum>0){
			sum=sum/10;
			count++;
		}
		printf("%d\n",count);
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
int a,b;
while(cin>>a>>b){
int sum=a+b;
int c=0;
for(;sum!=0;){
sum/=10;
c++;
}
cout << c << endl;
c=0;
}
}

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

#define INF 1.1e9
#define LINF 1.1e18
#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define BIT(x,n) bitset<n>(x)
#define PI 3.14159265358979323846

typedef long long ll;
typedef pair<int,ll> P;
typedef pair<ll,P> PP;

//-----------------------------------------------------------------------------

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

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

	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[1000],b[1000],x[100];
  for(int i=0;i<3;i++){
    cin>>a[i]>>b[i];
  }
  for(int i=0;i<3;i++){
    a[i]+=b[i];
    while(a[i]>9){
      a[i]/=10;
      x[i]++;
  }
    x[i]++;
  }
    for(int i=0;i<3;i++){
      cout<<x[i]<<endl;
    }
  return(0);
}

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++;
		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) {
	return std::to_string(num).length();
}

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

C++: #include<cstdio>

int main(){
	int a, b, c;
	while(scanf("%d %d", &a, &b) + 1){
		c = 1;
		for(int i = 1;i <= 8 ; i++){
			c *= 10;
			if(c > a + b){
				printf("%d\n", i);
				i += 8;
			}
		}
	}
	return 0;
}

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

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

	while (cin >> a >> b){
		sum = a + b;
		if (sum < 10){
			cout << 1 << endl;
		}
		else if (sum > 10 && sum < 100){
			cout << 2 << endl;
		}
		else if (sum < 1000 && 100 < sum){
			cout << 3 << endl;
		}
		else if (sum < 10000 && 1000 < sum){
			cout << 4 << endl;
		}
		else if (sum < 100000 && 10000 < sum){
			cout << 5 << endl;
		}
		else if (sum < 1000000 && 100000 < sum){
			cout << 6 << endl;
		}
		else if (sum < 10000000 && 1000000 < sum){
			cout << 7 << endl;
		}
		else if (sum < 100000000 && 10000000 < sum){
			cout << 8 << endl;
		}
	}

	return 0;
}

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

using namespace std;

vector<string> split(const string &s, char delim) {
    vector<string> elems;
    stringstream ss(s);
    string item;
    while (getline(ss, item, delim)) {
        if (!item.empty()) {
            elems.push_back(item);
        }
    }
    return elems;
}

int digits(int num) {
    if (num < 10) return 1;
    int count = 1;
    num = num / 10;
    while(num != 0) {
        count++;
        num = num / 10;
    }
    return count;
}

int main() {

    string str;
    while(getline(cin, str)) {
        vector<string> splited = split(str, ' ');
        int a = stoi(splited[0].c_str());
        int b = stoi(splited[1].c_str());
        cout <<  to_string(digits(a + b)) << endl;
    }

    return 0;
}

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

int main() {
  long long int a, b;
  cin >> a >> b;
  long long int sum = a+b;
  //cout << sum << endl;
  

  int cnt = 1;
  while(sum /= 10) cnt++;

  cout << cnt << endl;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	cout << to_string(a + b).length() << endl;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main() {
	unsigned int a, b, i = 0;
	while (scanf("%d %d",&a,&b)!=EOF){
		a += b;
	while (1) {
		if (a / 10 != 0) {
			a /= 10;
			i++;
		}
		else
			break;
	}
	cout << i + 1 << endl;
}
		return 0;
}

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

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

	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+1 << endl;
	}
	

	return 0;
}

C++: #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  int a,b;
  while(cin >>a>>b && a!=EOF){
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=0,x;
  x=a+b;
  while(x>0){
  x/=10;
  count++;
}
  return count;}

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

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

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

    return 0;
}

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    while(!cin.eof()){
        int a,b,r;
        cin>>a>>b;
        r=log10(a+b)+1;
        cout<<r<<endl;
    }
    return 0;
}

C++: input = raw_input()
splited = input.split()
num = int(splited[0])+int(splited[1])
print len(str(num))

C++: #include <stdio.h>

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

  while(scanf("%d %d", a, b)!=0){
    sum=a+b;
    count=1;
    while(sum/10!=0) count++;
    printf("%d\n", count);
  }
  return 0;
}

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

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

C++: #include<cstdio>
int main(void){
int a,b,i,s;
while(scanf("%d",&a)!=EOF){
 scanf("%d",&b);
 s=a+b;
 for(i=0;s>0;i++){
  s/=10;
 }
 printf("%d\n",i);
}
return 0;
}

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

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

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

int digit(long long x){
  int i=1;
  while(true){
    x/=10;
    if(x==0)break;
    i++;
  }
  return i;
}

int main(){
  long long  a, b;
  while(true){
    scanf("%lld %lld", &a, &b);
    printf("%d\n", digit(a+b));
  }
  return 0;
}