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 <algorithm>
#include <cstdio>
#include <functional>

using namespace std;

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

    }
    return 0;

}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    long long a,b;
    int tt;
    //cin>>tt;
    while(cin>>a>>b)
    {
        int d2;
        int d1=d2=0;
        while(a){
            if(a%10) d1++;
            a/=10;
        }
        while(b){
            if(b%10) d2++;
            b/=10;
        }
        cout<<d1+d2<<endl;

    }

}

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

int main(){
long int sum,buf1,buf2;
int c;

while(cin >> buf1 >> buf2){
	c = 1;
	sum = buf1 + buf2;
	
	while(sum/10 != 0){
		sum /= 10;
		c++;
	}
	cout << c << endl;
}
return 0;
}

C++: #include <iostream>			//std::cout, std::cin
#include <string>			//std::string,std::to_string(C++11)
#include <vector>			//std::vector
#include <valarray>			//std::valarray
#include <algorithm>		//std::sort
#include <ctime>			//localtime_s
#include <cstdlib>			//abs
#include <cmath>			//abs,std::pow,sqrt,sin,cos,round,floor,ceil
#include <fstream>			//std::ifstream,std::ofstream
#include <iomanip>			//std::setprecision,std::setw,std::setfill
#include <random>			//std::random(C++11)
#include <numeric>			//std::accumulate
#include <functional>		//std::greater
#include <chrono>			//std::chrono(C++11)
#include <bitset>			//std::bitset
#include <queue>			//std::queue

const static double	de_PI	= 3.14159265358979323846;
const static int	de_MOD	= 1000000007;
const static int	de_MAX	= 999999999;

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());
	//std::ofstream ofs("456.csv");
	//std::chrono::system_clock::time_point t_st = std::chrono::system_clock::now();

	std::vector<int> A;
	int a = 0, b = 0;
	while (std::cin >> a) {
		std::cin >> b;
		A.push_back(std::to_string(a + b).length());
	}
	for (unsigned int i = 0; i < A.size(); i++) {
		std::cout << A[i] << std::endl;
	}

	//std::chrono::system_clock::time_point t_ed = std::chrono::system_clock::now();
	//std::cout << std::chrono::duration_cast<std::chrono::milliseconds>(t_ed - t_st).count() << "ms" << std::endl;

}

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

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

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

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

int main(){

	int i, j;
	while(cin >> i >> j){

		i += j;
		j = 0;

		while( i > 0, j++, i /=  10);
		cout << j;
	}

	cout << j;
}

C++: #include <vector>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <utility>
#include <functional>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
#include <cassert>
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define EXIST2(s,e) (find(ALL(s),(e))!=(s).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define EACH(t,i,c) for(t::iterator i=(c).begin(); i!=(c).end(); ++i)
const double EPS = 1e-10;
const double PI  = acos(-1.0);


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

C++: #include <iostream>
 
int main(){
    int a, b ,i ,n ;
    while(std::cin>>a>>b){
    i=1;
    for(n=1;a+b>=i*10;n++){
    i=i*10;
    }
    std::cout<<n<<std::endl;
}
return 0;
}

C++: #include <stdio.h>

int main(){
	
	int x ,y;
	while(	scanf("%d %d",&x,&y) != EOF){
		int z  = x+y;
		int digCnt = 1;
		while(z/10!=0){
			z/=10;
			digCnt++;
		}
		printf("%d\n",digCnt);
	}
	
	return 0;
}

C++: using System;
using System.Linq;
public class Program {
	public static void Main() {
		string buf;
		while(!string.IsNullOrEmpty(buf = Console.ReadLine())) {
			Console.WriteLine(buf.Split().Select(int.Parse).Sum().ToString().Length);
		}
	}
}

C++: #include <iostream>

using namespace std;

int main(){
	
	int a,b;
	int  s,k=0;
	
	while(1){
		cin>>a>>b;
		if(a<0||b<0)
			break;
	s=a+b;
	while(s!=0){
	s=s/10;
	k++;
	}
		cout<<k<<endl;
	}
	
	
	}

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

//??????????????????????????´??°??????????????°?????¨????????????
int main()
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=3,i=0;

	while( cin >> a[i] >> b[i]) i++;

	for(i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		cout << cnt << endl;
		cnt=0;
	}

	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <vector>
#include <string>
#include <sstream>

#define rep(i, j) for(int i = 0; i < j; i++)
#define all(i) i.begin(), i.end()
#define ll long long

using namespace std;

string Num2Str(int num)
{
	stringstream ss;
	ss << num;
	return ss.str();
}

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

	int a, b;
	string s;
	// code
	while (true)
	{
		cin >> a >> b;
		s = Num2Str(a + b);
		cout << s.size() << endl;
	}

	return 0;
}

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

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

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

C++: #include <iostream>

using namespace std;

int pers(int k) {
	int ret = 0;
	while (k!=0) {
		k /= 10;
		ret++;
	}
	return ret;
}

int main() {
	int k, l;
	while (cin >> k >> l) {
		cout << pers(k+l) << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    string a, b;
    while((cin >> a >> b) != EOF){
        printf("%d %d\n", a.length(), b.length());
    }
}

C++: #include <stdio.h>

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

C++: #include<iostream>
#include<stdio.h>

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

	// 値の入力
	cin >> num1 >> num2;

	//整形
	sprintf_s(str,"%d\0",(num1 + num2));

	// 文字数計測
	for(i=0;str[i] != '\0';i++){
	}

	// 文字数表示
	cout << i << endl;

	return 0;
}