Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

C++: //泥臭いなあ
#include <iostream>
#include <cstdio>

int main()
{
        using namespace std;
        long int a,b;
        unsigned long int div;

        cin >> a;
        cin >> b;
        div = (a+b)/10;

        if(div == 0)cout <<1;
        else if(1 <= div && div <= 9)cout <<2;
        else if(10 <= div && div <= 99)cout <<3;
        else if(100 <= div && div <= 999)cout <<4;
        else if(1000 <= div && div <= 9999)cout <<5;
        else if(10000 <= div && div <= 99999)cout <<6;
        else if(100000 <= div && div <= 200000)cout <<7;

        return 0;
}

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

#include <iostream>
using namespace std;

int number_of_digits(int n) {
	int result = 0;
	while (n != 0) {
		result++;
		n /= 10;
	}
	return result;
}

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

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

int main(){
  int a,b;
  while(cin >> a >> b){
    int ans=a+b;
    if(ans>=1000000){
      cout << 7 << endl;
    }else if(ans>=100000){
      cout << 6 << endl;
    }else if(ans>=10000){
      cout << 5 << endl;
    }else if(ans>=1000){
      cout << 4 << endl;
    }else if(ans>=100){
      cout << 3 << endl;
    }else if(ans>=10){
      cout << 2 << endl;
    }else if(ans >=0){
      cout << 1 << endl;
    }
  }
  return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <vector>
#include <stack>
#include <map>
#include <queue>
#include <string.h>
#include <algorithm>
#include <iostream>
#define ll long long
#define db double
#define INFINITE 9999999

using namespace std;

int main()
{
    //freopen("in.txt","r",stdin);
    //freopen("out.txt","w",stdout);
    int a,b;
    char s[50];
    while(cin>>a>>b){
        sprintf(s,"%d",a+b);
        cout<<strlen(s)<<endl;
    }
    return 0;
}

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

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

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

int digit(int a, int b) {
	int sum = a+b;
	int d = 0;
	while (1) {
		sum /= 10;
		d++;
		if (sum == 0) break;
	}
	return d;
}

int main() {
	int a, b;
	while (1) {
		cin >> a >> b;
		cout << digit(a, b) << endl;
	}
	return 0;
}

C++: #include<stdio.h>

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

C++: #import<iostream>
main(){for(int a,b;std::cin>>a>>b;std::cout<<b<<"\n")for(a+=b,b=0;a,++b,a/=10;);}

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

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

C++: #include <cstdio>
#include <iostream>
#include <algorithm>

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int c = a+b;
		if(c == 0){
			cout << "1" << endl;
			continue;
		}
		int cnt = 0;
		while (c != 0)
		{
			cnt++;c /= 10;
		}
		cout << cnt << endl;
	}
	return 0;
}

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

using namespace std;

#define LOG(...) fprintf(stderr, __VA_ARGS__)
//#define LOG(...)
#define FOR(i, a, b) for(int i=(int)(a); i<(int)(b); ++i)
#define REP(i, n) for(int i=0; i<(int)(n); ++i)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define EXIST(s, e) ((s).find(e)!=(s).end())
#define SORT(c) sort(ALL(c))
#define RSORT(c) sort(RALL(c))
#define SQ(n) (n) * (n)

typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vb> vvb;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

int main() {
  ll a, b;
  while(cin >> a >> b) {
    cout << to_string(a + b).length() << endl;
  }
}

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

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

    int a, b;
    while(std::cin >> a >> b){
        int cnt = 0;
        int r = a+b;
        while(r){
            r/=10;
            ++cnt;
        }
        std::cout << cnt << "\n";
    }
    return 0;
}

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

using namespace std;

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

  while(cin >> a >> b){
    int digit = 0;
    sum = a + b;
    while(sum > 0){
	digit++;
	sum /= 10;
    }
    cout << digit << endl;
  }
  return 0;
}
//while文の初期化の所で失敗した

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

using namespace std;

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

C++: #include <iostream>

using namespace std;
	int main() {
		int a,b,c,d;
		if(a<=1000000&&b<=1000000){
			for(int i=0;i<200;i++){
				cin>>a>>b;
				c=a+b;
				while(c>0,d++,c/=10);
				cout<<d<<endl;
			}
		}
		
	}

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

int main(){
    long long a,b;
    while(cin >> a >> b){
    long long sum = a + b;
    string str = to_string(sum);
    cout << str.length()<<endl;}

    return 0;
}

C++: #include <cstdlib>
#include <cstdio>
#include <algorithm>
using namespace std;

int a,b,c,hasil;

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

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

int main() {
	int a, b;
	while(cin >> a >> b) {
		int c = a + b;
		
		if (c < 10) {
			cout << 1 << endl;
		} else if (c < 100) {
			cout << 2 << endl;
		} else if (c < 1000) {
			cout << 3 << endl;
		} else if (c < 10000) {
			cout << 4 << endl;
		} else if (c < 100000) {
			cout << 5 << endl;
		} else if (c < 1000000) {
			cout << 6 << endl;
		} else {
			cout << 7 << endl;
		}
	}
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
 
using namespace std;
 
int main()
{
    char buf[2000];
    int a,b,c;
 
    while(scanf("%d%d",&a,&b)!=EOF){
        c=1;
        a+=b; while(a/=10) c++;
 
        cout<<c<<endl;
 
    }
 
}

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

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int a,b;

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