Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

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

using namespace std;

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

	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
    int n1,n2,count,check;

    while(1){
        cin >> n1 >> n2;
        if(cin.eof()){
            break;
        }
        count = 1;
        check = n1 + n2;
        while(1){
            check /= 10;
            if(check == 0){
                cout << count << endl;
                break;
            }
            else {
                count++;
            }
        }
    }

    return 0;
}

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

int main()
{
  int a, b;
  int cou;
  int i, j;
  int ten;

  for (i = 0; i < 200; i++){
    cou = 1;
    ten = 10;
    cin >> a >> b;
    a += b;
    for (j = 1; j <= 7; j++){
      if (a / ten > 0){
        cou++;
        ten  *= 10;
      }
    }
    cout << cou << "\n";
  }

  return (0);
}

C++: //
//  main.cpp
//  Sample
//
//  Created by h3037183 on 2017/07/31.
//  Copyright ?? 2017??´ ?°????. All rights reserved.
//

#include <iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
    int a,b,e=1;
    while(cin>>a>>b){
        if(a<0 && b<0)break;
        if(a>1000000 && b>1000000)break;
        for(int z=10;z<1000000;z=z*10){
        if(a+b>=z){
            e++;
        }
    }
         cout<<e<<endl;
            e=1;
    }
    return 0;
}

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

int calcDigits(int n){
	if(n < 10)
		return 1;
	return 1+ calcDigits(n/10);
}

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

C++: /*
??????????????????????????´??° a ??¨ b ??????????????°???????????????????????°?????????????????????????????????
???????????????????????° <= 200
*/

#include <iostream>
#include <string>

using namespace std;
 
int main()
{

	int a, b, calc, strCount = 0;
	string str = "";

	for ( int i = 0; i < 200;  i++ ) {
		a = b = 0;
		
		cin >> a >> b;

		if ( a == 0 && b == 0 ) {
			break;
		}

		calc = a + b;
		str = to_string( calc );
		strCount = str.size();
		
		cout << strCount << endl;
	}

    return 0;
}

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

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

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

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

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

using namespace std;

int main()
{
	int a, int b;

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

	return 0;
}

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

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

int main(){
	// input
	int a, b, total, ans;
	while(cin >> a >> b, !(cin.eof())){
		total = a + b;
		while(true){
			total /= 10;
			ans++;
			if(total == 0){
				break;
			}
		}
		cout << ans << endl;
	}

	return 0;
}

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

int main()
{
	double a,b;
	double total,keta;
	int iketa;

	while(scanf("%lf %lf",&a,&b) != EOF){
		total = a + b;
		keta = log10(total);
		keta = keta + 1;
		printf("%d\n",(int)keta);
	}

	return 0;
}

C++: #include<iostream>
#include<math.h>
int main(){
	using namespace std;
	int a,b;

	while(cin>>a>>b){
		cout<<int(log10(a+b))+1<<endl;
	}
    return 0;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,i=0;

	while (scanf("%d%d", &a, &b) != EOF){
		
		if (a + b < 1000000){
			printf("6\n");
		}else if(a + b < 100000){
			printf("5\n");
		}else if (a + b < 10000){
			printf("4\n");
		}else if (a + b < 1000){
			printf("3\n");
		}else if (a + b < 100){
			printf("2\n"); 
		}else if (a + b < 10){
			printf("1\n");
		}i++;
	}
	return 0;
}

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