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++: def counts(num):
	if num:counts(map(int, raw_input().split()))
	if num:countlist.append(len(str(num[0]+num[1])))

countlist = []
counts(map(int, raw_input().split()))
countlist.reverse()
for x in countlist:
	print x

C++: #include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>

#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007

using namespace std;

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

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int keta(int n){
  static int cnt=0;
  if(n>0){
    cnt++;
    return keta(n/10);
  }else{
    return cnt;
  }
}
int main(){
  int a,b;
  int n;
  while(scanf("%d %d",&a,&b)!=1){
    a+=b;
    n=keta(a);
    cout<<n<<endl;
  }
  return 0;
}

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;
static const double EPS = 1e-5;
typedef long long ll;
#define FOR(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	int a,b;
	for(;scanf("%d %d",&a,&b)!=EOF;){
		int i=0,k=1;
		for(;a+b>=k;i++,k*=10);
		cout<<i<<endl;
	}
	return 0;
}

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

int main() {
	int a,b;
	while(cin>>a>>b){
		int cnt=1;
		for(int i=10;;i*=10){
			if((a+b)/i>=1) cnt++;
				else break;
		}
		cout<<cnt<<endl;
	}

	return 0;
}

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

int main(){

	int a[2];
	cin >> a[0] >> a[1];
	int check=a[0]+a[1],retval=1;
	while(check>=10){
		check/=10;
		retval++;
	}
	cout << retval << endl;

    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
#include <vector>
using namespace std;
const int MAX = 1000000;

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

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

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

C++: #include <stdio.h>

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

C++: #include<iostream>

using namespace std;


int main()
{
	int a, b,x;
	
	cin >> a >> b;
	int ar[7] = { 1, 2, 3, 4, 5, 6, 7 };
	while (a != -1){
		int counter = -1;
		x = a + b;
		while (x != 0){
			x /= 10;
			counter++;
		}
		cout << ar[counter] << endl;
		cin >> a >> b;
	}
	
}

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

int main(){
  int a,b;
  while(cin>>a>>b){
    int sum=a+b;
    int count=0;
    do{
      count++;
      sum*=0.1;
    }while(sum!=0);
      cout<<count<<endl;
  }
  return 0;
}

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

using namespace std;

int main() {
	long a, b;
	string sum;
	
	while (scanf("%ld %ld", &a, &b) != EOF) {
	    sum = to_string(a + b);
	    
	    printf("%d\n", sum.size());
	}
	
	return 0;
}

C++: #include<stdio.h>
int main(){
  int a,b,c;
  while(scanf("%d %d",&a,&b)!=EOF){
  	c = a + b;
  	if(c<10) printf("1\n");
  	else if(c<10^2) printf("2\n");
  	else if(c<10^3) printf("3\n");
  	else if(c<10^4) printf("4\n");
  	else if(c<10^5) printf("5\n");
  	else if(c<10^6) printf("6\n");
  	else if(c<10^7) printf("7\n");
  }
  return 0;
}

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

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

C++: #include <iostream>
#include <cmath>
using namespace std;
int main(){
    int a,b;
    while(cin >> a >> b){
        int c = log10(a + b) + 1;
        cout << c <<endl;
    }
    return 0;
}

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;

	cin >> a;

	return 0;
}

C++: #include <iostream>

int digits(int num);

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

    int a, b;
    while (std::cin >> a >> b)
        std::cout << digits(a + b) << std::endl;
}

int digits(int num)
{
    int cnt = 0;
    do {
        num /= 10;
        ++cnt;
    } while(num != 0);

    return cnt;
}

C++: #include <bits/stdc++.h>
#include <stdlib.h>
#define INF 114514810
#define FOR(i, r, n) for(int i=(r); i<(n); i++) 
#define REP(i, n) FOR(i, (0), n)
template<typename T>
void remove(std::vector<T>& vector, unsigned int index)
{
	vector.erase(vector.begin() + index);
}

using namespace std;

int n=1, a, b;

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

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>
#include <vector>
#include <algorithm>

#define ALL(a) a.begin(),a.end()

using namespace std;

int main()
{
  unsigned a = 1, b;

  while ( cin >> a >> b ) {
    int c = 1, n = a + b;
    if ( n == 0 ) {
      cout << 0 << endl;
      continue;
    }
    while ( n /= 10 )
      c++;
    cout << c << endl;
  }

  return 0;
}

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

int main(void){
  int a,b;
  cin >> a >> b;

  while(!cin.eof()){
    int m = a+b;
    int i;
    for(i=0;m!=0;i++){
      m /= 10;
    }
    cout << i << endl;
    cin >> a >> b;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main ( void )
{
  int a, b;
  while (cin >> a >> b)
  {
    int c = a + b, digit = 0;

    do
    {
      c /= 10;
      ++digit;
    } while (c);

    cout << digit << endl;
  }
  return 0;
}

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

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

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