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>

using namespace std;

int main()
{
	int num[2];
	int numLength = sizeof(num) / sizeof(num[0]);
	int n = 1;
	int sum = 0;
	
	int h;
	for(h = 0; h < numLength; h++)
	{
		cin >> num[h];
		sum += num[h];
	}
	
	while(sum/10 != 0){
		n++;
		sum = sum / 10;
	}
	
	cout << n << endl;
	
	return(0);
}

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

int main()
{
  long n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  long sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

int main() {
    std::vector<int> digits;
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF)
    {
        int sum = a + b;
        int t = sum / 10;
        int digit = 0;
        while (t > 0) {
            digit ++;
            t = t / 10;
        }
        digits.push_back(digit);
    }

    for (int i = 0; i < digits.size(); i++) {
        std::cout << digits[i] << std::endl;
    }

    return 0;
}

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    int a,b,c;
    REP(j,200){
    if(!cin)
        return 0;
    cin >> a >> b;
    c = a+b;
    REP(i,10){
        c/=10;
        if(c==0){
            cout << i+1 << "\n";
            break;
        }
    }
    }
}

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

int main(){
	int a, b;
	while(cin >> a >> b){
		string s = to_string(a + b);
		cout << s.size() << endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    vector<int> v1, v2;
    int n, m;
    while(cin) {
        cin >> n >> m;
        v1.push_back(n);
        v2.push_back(m);
    }
    
    for(int i=0; i+1<v1.size(); i++) {
        int count = 0;
        int num = v1[i] + v2[i];
        while(num > 0) {
            num /= 10;
            count++;
        }
        cout << count << endl;
    }
    return 0;
}

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

int main(){
	int a, b, ab, digits[200], cnt=0, i;
	while(cin>>a>>b){
		digits[cnt]=1;
		ab = a+b;
		while(ab/=10){
			digits[cnt]++;
		}
		cnt++;
	}
	for(i=0;i<cnt;i++){
		cout<<digits[i]<<endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b = 1;
    int ans,line = 0;
    
    for (int i = 0; i < 3; i++){
        std::cin >>a>>b;
        ans = a + b;
        ans /= 10;
        if(ans  <= 9){
            ans = 2;
        }
        else if(ans <= 99){
            ans = 3;
        }
        else if(ans <= 999){
            ans = 4;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

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

int main(){

	int a[2];
	cin >> a[0] >> a[1];
	int check=a[0]+a[1],retval=1;
	while(check>=10){
		check/=10;
		retval++;
	}
	cout << retval << endl;

    return 0;
}

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

int main(){
	int a,b,c;
	string ss;
	while(cin>>a>>b){
		c=a+b;
		ss=to_string(c);
		c=ss.length();
		cout<<c<<endl;
	}
	return 0;
}

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

using namespace std;

typedef long long ll;

int num_of_keta(int x) {
  int ret = 0;

  do {
    ret++;
    x /= 10;
  }while(x);

  return ret;
}

int main() {
  int x, y;

  while(cin >> x >> y) {
    std::cout << num_of_keta(x+y) << std::endl;
  }
}

C++: #include<stdio.h>
int main(void)
{
	int i,j,cnt=1,a,b,c;
	for(j=0;j<3;j++){
		scanf("%d %d",&a,&b);
		c=a+b;
		for(i=0;c!=0;i++){
			c/=10;
		}
		printf("%d\n",i);
	}
	return 0;
}

C++: #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,m,sum,c=0;
        }
        while(scanf("%d %d",&n,&m)!=EOF){
            sum=n+m;
            if(sum==0){
                c++;
            }
            while(sum!=0){
                sum=sum/10;
                c++
            }
        }
        cout<<c;
        
    }

C++: #include<iostream>
#include<cmath>
int main(){
	int a,b;
	while(std::cin>>a>>b)
		a=log10(a+b)+1,std::cout<<a<<std::endl;
	return 0;
}

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

int getDigital(int sum) {
	int a=1;
	while ( sum / 10 ) {
		a++;
		sum /= 10;
	}
	return a;
}

int main() {
	int a,b,c;
	while(cin >> a >> b) {
		c = getDigital(a + b);
		cout << c << endl;
	} 
}

C++: #include<iostream>
using namespace std;
int main()
{
int a,b,i;
for(int i=0;i<200;i++)
{
cin>>a>>b;
if(a+b<10)
{
	cout<<1<<endl;
}
else if(a+b<100)
{
	cout<<2<<endl;
}
else if(a+b<1000)
{
	cout<<3<<endl;
}
else if(a+b<10000)
{
	cout<<4<<endl;
}
else if(a+b<100000)
{
	cout<<5<<endl;
}
else if(a+b<1000000)
{
	cout<<6<<endl;
}
else
{
	cout<<7<<endl;
}
}
return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main()
{
	int a;
	int b;

	while (cin >> a >> b) {
		//scanf("%d%d", &a, &b);
		if (a + b == 0) printf("%d\n", 1);
		else printf("%d\n", (int)log10(a + b) + 1);
	}

		return (0);
	
}

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

using namespace std;

int main()
{
	int digit;
	int a = 0, b = 0;
	string sum;

	while ( cin >> a >> b )
	{
	
		digit = log10( a + b ) + 1;
		cout << digit << endl;
	}

	return 0;

}

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

using namespace std;

int main() {
	while(true) {
		int a,b;
		if(scanf("%d%d", &a, &b)<2)break;
		a+=b; b=0;
		while(a)b++,a/=10;
		printf("%d\n",b);
	}
	return 0;
}

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

using namespace std;
int a,b;
int s;
int Count;
int main(){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s !=0; s/=10){
    Count++;
  }
  cout << Count;
}

C++: ///
// File:  0002.cpp
// Author: ymiyamoto
//
// Created on Sat Nov  4 15:39:12 2017
//

#include <cstdint>
#include <iostream>

using namespace std;

int32_t main()
{
  while (true) {
    uint32_t a, b;
    cin >> a >> b;
    if (cin.eof()) break;
    cout << to_string(a + b).size() << endl;
  }

  return 0;
}

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

int main(){

  double a, b;

  while( cin >> a >> b ){
    cout << fabs(floor( log10( a+b ) )) + 1 << "\n";
  }

}

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

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

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

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