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<iostream>
int main()
{
	int result[200];
	int num;
	for(int i = 0;; i++)
	{
		int a, b;
		std::cin >> a >> b;
		if(std::cin.eof())
		{
			num = i;
			break;
		}
		for(int j = 10, k = 1;; j *= 10, k++)
		{
			if((a + b) / j == 0)
			{
				result[i] = k;
				break;
			}
		}
	}
	for(int i = 0; i < num; i++)
	{
		std::cout << result[i] << std::endl;
	}
	return 0;
}

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

#define pout(n)  printf ("%d\n", n)

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)

const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = { 1,1,0,-1,-1,-1,0,1 };
const int d8y[8] = { 0,1,1,1,0,-1,-1,-1 };
 
typedef long long ll;
using namespace std;
 
int main() {
  int a,b;
  while(cin >> a >> b){
    a += b;
    int count = 1;
    
    while(a != 0){
       a /= 10;
      count++;
    }
    
    pout(count);
  }
  return 0;
}

C++: #include<iostream>
#include<math.h>
#include <stdlib.h>

void listen_nums(int &a,int &b);

int calc_digit(const int num);

int main()
{
	int a,b;
	
	for(;1;)
	{
		listen_nums(a,b);
		int sum=a+b;
		std::cout<<calc_digit(sum)<<std::endl;
	}
	
	return 0;
}

void listen_nums(int &a,int &b)
{
	using namespace std;
	cin>>a>>b;
	
	if(cin.eof())
	{
		exit(0);
	}
}

int calc_digit(const int num)
{
	return (int)log10((double)num)+1;
}

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

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

C++: 
#include <iostream>
#include <cmath>
#include <vector>
#include <string>
#include <map>
#include <algorithm>
#include <tuple>
#include <set>

using namespace std;
using ll = long long;
using ull = unsigned long long;
#define out(S) cout<<(S)<<endl;
#define REP(i,b) for(size_t i=0;i<(b);i++)
#define rREP(i,b) for(int i=(b)-1;i>=0;i--)
#define FOR(i,a,b) for(size_t i=(a);i<(b);i++)
#define rFOR(i,a,b) for(int i=(b)-1;i>=0;i--)
#define Foreach(item,collection) for(auto item:collection)
#define mod(i) ((i) % (ll)(1e9 + 7))
ll modpow(ll i, ll j) { ll tmp = 1; while (j) { if (j % 2)tmp = mod(tmp*i); i = mod(i*i); j /= 2; }return tmp; }
#define divmod(a,b) (mod(a * modpow((ll)b,(ll)(1e9 + 5))))
#define Yes out("Yes")
#define No out("No")
#define NO out("NO")
#define YES out("YES")
#define INF 1e10;
#define ShowAll(collection) for(auto i:collection){out(i);}
#define IfOut(condition,text) if((condition)){out(text);return 0;}
#define IfeOut(condition,itext,etext) if(condition){out(itext);return 0;}else{out(etext);return 0;}
#define Select(collection,condition,result) Foreach(i,collection){result+=condition;}
#define GetAuto(_N,vect) {cin>>N;vect.resize(N);REP(i,_N){cin>>vect[i];}}
void removeAt(string& s, int index) { s.erase(index, 1); }
template<typename T> void removeAt(vector<T>& v, int index) { v.erase(v.begin() + index); }
ll manhattanDistance(ll x1, ll y1, ll x2, ll y2) { return (abs(x2 - x1) + abs(y2 - y1)); }


int main() {
	ll a, b;
	vector<int> ans;
	while (cin>>a>>b)
	{
		ll c = a + b;
		int cnt = 0;
		while (c)
		{
			c /= 10;
			cnt++;
		}
		ans.push_back(cnt);
	}
	Foreach(i, ans) out(i);
	return 0;
}

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

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

   	int a,b,c,ans;

	while(cin >> a >> b;){
   		c = a + b;
   		ans = (int)log10((double)c) + 1;
   		cout << ans << "\n";
	}
	return 0;
}

C++: #include <iostream>

int main() {
  int a, b;
  int num, sum;
  while (std::cin >> a >> b) {
    num = 1;
    sum = a + b;
    while ((sum /=10) != 0)
      num += 1;
    std::cout << num << std::endl;

  }
  return 0;
}

C++: #include <iostream>
#include <cstdio>
int main(int argc, const char * argv[])
{
    int a, b, ab = 0, ans = 0;
    
    while(scanf("%d %d", &a, &b) != EOF){
        if (a < 0 || 1000000 < a) {
            while (a < 0 || 1000000 < a) {
                scanf("%d %d", &a, &b);
            }
        }
        if (b < 0 || 1000000 < b) {
            while (b < 0 || 1000000 < b) {
            scanf("%d %d", &a, &b);
            }
        }
        ab = a + b;
        while (ab) {
            ans++;
            ab /= 10;
        }
        printf("%d\n", ans);
    }
    return 0;
}

C++: #include<iostream>

using namespace std;
 
int main(){
  int x[3],y[3],sum,i;
  int digit[3] = {0};

  for(i=0; i<3; ++i){
    cin >> x[i] >> y[i];
  }

  for(i=0; i<3; ++i){
    sum = x[i] + y[i];

    if(sum == 0){
      digit[i] = 1;
    }

    while(sum != 0){
      sum = sum / 10;
      ++digit[i];
    }
  }

  for(i=0; i<3; ++i)
    cout << digit[i] << "\n";

    return 0;
}

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

int digit(int x)
{
    int i = 0;
    int j = 1;
    while (j <= x) {
        j *= 10;
        i++;
    }
    return i;
}
int main()
{
    int m[2];
    int output[200];
    int i = 0;
    while (cin >> m[0] >> m[1]) {
            output[i++] += digit(m[0] + m[1]);
    }
    for (int j = 0; j < i; j++)
        cout << output[j] << endl;
}

C++: #include <stdio.h>
int main( void ){
    int a,b;
    scanf( "%d %d",&a,&b );
    a = a + b;
    int n = 1;
    int j = 0;
    while( a / n > 0 ){
        n *= 10;
        j++;
    }
    printf( "%d",j );
    return 0;
}

C++: #include <iostream>

using namespace std;

int sum(int n){
int res = 1;
while(n / 10 > 0){
res++;
n/=10;
}

return res;
}

int main()
{
int a,b;
while(~scanf("%d %d",&a,&b)){
printf("%d\n",sum(a)+sum(b));
}

return 0;
}

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

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

C++: #include<iostream>

using namespace std;

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

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

  int a,b;
  while(1){
    cin >> a >> b;
  int i = 0;
  a = a + b;
  while(a > 0){
    a = a / 10;
    i++;
      }

  cout << i << endl;

  }
}

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 <iostream>
using namespace std;

int digits(int n){
  int res=0;
  while(n){
    n = n/10;
    res++;
  }
  return res;
}

int main(){
  int x,y;
  while(cin >> x >> y)
    cout << digits(x+y) << endl;
  return 0;
}

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

C++: #coding:UTF-8

a=int(input())
b=int(input())

a+=b;
b=1
for num in range(1,8):
    b*=10
    if a<b:
        print(num)
        break

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

// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002

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