Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

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

C++: #include <iostream>

int main(){
	int a, b, n, ans ;
	while ( std::cin >> a >> b >> std::endl ) {
		a+b=n;
		ans=0;
		while( n > 0, ans++, n /= 10 );
		cout << ans << endl;
	}
return 0;
}

C++: #include <cstdio>
#include <cstring>
#include <cstdlib>


int main()
{
    int a,b;
    char str[32], *p;
    while(1){
        gets(str);
        if(strlen(str) == 0)return 0;
        a = atoi(strtok(str, " "));
        b = atoi(strtok(NULL, " "));
        sprintf(str,"%d",a+b);
        printf("%d\n",strlen(str));
    }
}

C++: #include <iostream>
using namespace std;
int main(){

	long a,b;
	
	while(cin>>a>>b){
		long c = a+b;
		long d = 1;
		long e = 10;
		for(int j=0;j<10;j++){
			if(c == 0){
				cout<<1<<endl;
			}else if(c >= d && c < e){
				cout<<j+1<<endl;
			}
			d = d * 10;
			e = e * 10;
		}
		
	}	
	return 0;
}

C++: #include <iostream>

int main(void){
while (!std::cin.eof()){
int a,b,c,i=0;
std::cin >> a >> b;
if(std::cin.eof())
break;
c=a+b;

while(c/=10)
i++;

std::cout << i+1 << std::endl;
}
return 0;
}

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

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    long a[200];
    long b[200];
    int keta[200];
    
    int now = 0;
    long p;
    while(cin >> a[now] >> b[now]){
        p = a[now] + b[now];
        int k = 0;
        while(p < (10 ^ k)){
            k++;
        }
        keta[now] = k;
    }
    
    int n = 0;
    while(keta[n]){
        cout << keta[n] << endl;
        n++;
    }
    
    
    return 0;
}

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>
using namespace std;
int main() {
	int A, B, C, i = 10, test = 1;
	while (cin >> A >> B) {
		C = A + B;
		if (C < 10) {
			cout << 1 << endl;
		}
		else {
			while (test != 0) {
				i = i * 10;
				test++;
				if (C < i) {
					cout << test << endl;
					test = 0;
				}
			}
		}
	}
}

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

int main(){
	int a,b,c;
	int ans;
	
	for(inti=0;i<103;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		i
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}