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

using namespace std;

int a, b;

int process(){
	int sum = a + b;
	int digit = 1;
	
	while (sum / 10 > 0){
		sum /= 10;
		digit++;
	}
	
	return digit;
}

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

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

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

C++: #include<stdio.h>

int main()
{
    int i,a,b,sum,j;
    while (scanf ("%d%d",&a,&b) != EOF)
    {
    j=0;
        sum=0;
        if(((a<0 || a>1000000)||(b<0 || b>1000000))||(i>200))
            break;
        sum=a+b;
        while(sum!=0)
        {
            sum=sum/10;
            j++;
        }
        printf("%d\n",j);
        i++;
    }
    return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555545555555555555555555555555555555555555555555555555555555555";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

C++: #include<iostream>
using namespace std;
int main(){
	int x,y,z,pre;
	while(cin>>x>>y){
		z=x+y;
		pre=0;
		while(z>0){
			z/=10;
			pre++;
		}
		cout<<pre<<endl;
	}
	return 0;
}

C++: //#include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int ab[200][2],f,i=0,a,g,k=0;
	while(cin>>f){
		scanf("%d %d",&ab[i][1],&ab[i][2]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=ab[j][1]+ab[j][2];
		for(g=0;;g++){
			if(a==0&&g==0){
				printf("%d\n",a);
				break;
			}
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

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

C++: #include <cstdio>
#include <cmath>
int main() {
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF) {
		if((a+b)==0) {
			printf("1\n");
		}else {
			printf("%d\n",(int)log10((double)(a+b))+1);
		}
	}
}

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		if (sum != 0){
		++cou;
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++cou;
			}
		}
		printf("%d", cou);
		cou = 0;
	}
}

C++: #include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

void do_calc(int a, int b){
  int c = a + b;
  int n = 0;
  while(true){
    if(c < 1.0f){
      cout << n << endl;
      break;
    }
    c = c/10;
    n++;
  }
}
  


int main(){
  int a, b;
  while(cin >> a >> b){
    do_calc(a, b);
  }
}

C++: #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) + number_of_digits(b)
		     << endl;
	return 0;
}

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

int main(int argc, const char * argv[])
{
    int a,b;
    while(cin >> a >> b){
        cout << (int)log10(a+b) + 1 << endl;
    }
    return 0;
}

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

int main() {
    std::string moji;
    int a, b;
    
    while (1) {
        std::cin >> a >> b;
        moji = std::to_string(a+b);
        if (std::cin.eof()) break;
        std::cout << moji.size() << std::endl;
    }
    
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
int digit(int s){return log(s)/log(10);}
int main(){
int a,b;while(cin>>a>>b){cout<<digit(a+b)<<endl;}
}

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

int main(){
  int a, b, c;
  int i = 1;
  int num = 0;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

C++: #include <iostream>

int main(){
	int cnt,a,b;
	while(std::cin>>a>>b){
		for(int i=10,cnt=0;;i*=10,cnt++){
			if((a+b)/i==0){
				std::cout<<cnt<<'\n';
				break;
			}
		}
	}
	return 0;
}

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

int main()
{
  int a, b;
  
  while (~scanf("%d%d", &a, &b)){
    stringstream conv;
    conv << a + b;
    cout << conv.str().size() << endl;
  }

  return (0);
}

C++: #include <iostream>

using namespace std;

int getDigitNumber(int n){
  return n > 0 ? 1 + getDigitNumber(n / 10) : 0;
}

int main(int argc, char const *argv[]) {
  while(true){
    int a,b;
    cin >> a >> b;
    cout << getDigitNumber(a+b) << endl;
  }
  return 0;
}

C++: #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
int main(){
	int a,b;
	int sum=0;
	int count=0;
	vector<int> digits;
	for(int i=0;i<200;i++){
	 cin >> a >> b;
	 sum = a + b;
	 digits.push_back(log10(sum)+1);
	}
	for(int i=0; i<digits.size();++i){
		cout << digits[i] << endl;
	}
	vector<int>().swap(digits);
	return 0;

}

C++: #include <iostream>
int main(void)
{
    int array[2];
    while(std::cin >> array[0] >> array[1]){
        array[0] += array[1];
        array[1] = 0;
        do{
            array[0] /= 10;
            ++array[1];
        }while(array[0]);
        std::cout << array[1] << std::endl;
    }
    return 0;
}

C++: //
// Created by tac on 2016/10/27.
//

#include <cstdlib>
#include <iostream>
#include <cmath>

namespace {
int digit(long n) {
    return static_cast<int>(std::floor(std::log10(n)) + 1);
}
}

int main() {
    long a, b;
    while (true) {
        if (std::cin.eof()) {
            break;
        }
        std::cin >> a >> b;
        std::cout << digit(a + b) << std::endl;
    }
    return EXIT_SUCCESS;
}

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
#define bl bool
#define nn printf("\n");
#define mod 1000000007

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 = 0, b = 0;
	while (cin >> a >> b)
	{
		int sum = a + b;
		string str;
		str = Num2Str(sum);
		printf("%d\n", str.size());
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

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

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