Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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;
}

C++: 

 #include<iostream>
#include<string>
#include<algorithm>
#include<vector>

using namespace std;

//Nayeem Shahriar Joy ,Applied Physics And Electronic Engineering , University of Rajshahi.

int main(){

	int a, b, sum;

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

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

#define REP(i,n) for(int i=0;i<n;++i)
#define rep(n) REP(i,n)


int main()
{
	int a,b; 

	while(cin>>a>>b)
	{
		int sum=a+b;
		int d=0;

		while(sum){ d++; sum/=10; }

		cout<<d<<endl;
	}

	return 0;
}

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

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

int main()
{
    double a, b;
    while(cin >> a >> b)
    {
        cout << countDigit(a + b) << endl;
    }
    return EXIT_SUCCESS;
}

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

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

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

int main(){

const int num = 3;
int t;

int a[num] = {0};
int b[num] = {0};
int c[num] = {0};
int cou = 0;

for(int i = 0; i < num; i++)
{
	cin >> a[i] >> b[i];
}

for(int i = 0;i < num;i++)
	{
		c[i] = a[i] + b[i];
		while(c[i] > 0)
		{
		c[i] /= 10;
		cou++;
		}
		if(cou == 0){cout << cou+1 << "\n";}
		else {cout << cou << "\n";}
		cou = 0;
	}
    return 0;
}