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 a[200],b[200],c[200],digit[200];
   int i,imax,j;
   i = 0;
   j = 1;
   do{
     cin >> a[i] >> b[i];
     i++;
   }while(a[i]!=NULL||b[i]!=NULL);
    
   imax = i;
   for(i=0;i<imax+1;i++){
     digit[i] = 1;
     c[i] = a[i] + b[i];
   }   
 
   for(i=0;i<imax+1;i++){
     while(c[i]>=10){
       c[i] /= 10;
       digit[i]++;
     }
   }
    
   for(i=0;i<imax+1;i++)cout << digit[i] << endl;
    
   return 0;
}

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

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

using namespace std;

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

C++: #include <stdio.h>
#include <math.h>
using namespace std;
int main(void){
    // Here your code !
    int a,b;
    while(~scanf("%d %d", &a, &b)){
        printf("%d\n", int(log10(a+b))+1);
    }
}

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

#include <iostream>
#include<algorithm>
using namespace std;
int main(){
    long a,b,i=0,sum=0;
    while(cin>>a>>b){
    sum=a+b;
    if(sum==1000000)i=7;
    else if(sum>99999)i=6;
    else if(sum>9999)i=5;
    else if(sum>999)i=4;
    else if(sum>99)i=3;
    else if(sum>9)i=2;
    else i=1;
    cout<<i<<endl;
        i=0;
    }
    return 0;
}

C++: #include <cstdio>

int main()
{
        unsigned int a, b, sum;
        unsigned int digit;

        while (scanf("%u %u", &a, &b) != EOF) {
                sum = a + b;
                digit = 0;
                while (sum) {
                        sum /= 10;
                        digit++;
                }
                printf("%u\n", digit);
        }

        return 0;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	int a,b;
	while(true){
	cin>>a>>b;
	int i=0;
	int h=a+b;
	while(true){
		if(0==h)
			break;
		i++;
		h/=10;
	}
	cout<<i<<endl;
	}
	return 0;
}

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

int main(){
	double a_heap[3];
	double b_heap[3];
	int digit[3];
	int count;
	for(int i=0;i<3;i++){
		cin >> a_heap[i] >> b_heap[i];
		cout << endl;
	}
	for(int i=0;i<3;i++){
		int num1 = 1;
		int j;
		for(j=1;;j++){
			num1 = 10 * num1;
		if((a_heap[i] + b_heap[i])/num1 < 1)
			break;
		}
		digit[i] = j;
	}
	for(int i=0;i<3;i++){
	cout << digit[i] << endl;
	}
	return 0;
}

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

int unsignedGeddigit(int a){
	return log10(a)+1;
}

int main(){
	int a,b,x[200],i=0;
	while(cin>>a>>b){
	x[i]=unsignedGeddigit(a)+unsignedGeddigit(b);
	i++;
	}
	for(int j=0;j<i;j++){
		cout<<x[j]<<endl;
	}

	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b){
        a+=b;
        for(int i=1;i<1000;i++){
            if(!(a/10)){
                a=i;
                break;
            }
            else a/=10;
        }
        cout<<a<<endl;
    }
    return 0;
}

C++: //
//  main.cpp
//  sanpie
//
//  Created by h3037178 on 2017/07/28.
//  Copyright ?? 2017??´ ?????£?????????. All rights reserved.
//

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    int i,o;
    for(int p=0;p<200;p++){
    cin>>i>>o;
    if(i+o<10){
        cout<<"1"<<endl;
    }else if(i+o<100){
        cout<<"2"<<endl;
    }else if(i+o<1000){
        cout<<"3"<<endl;
    }else if(i+o<10000){
        cout<<"4"<<endl;
    }else if(i+o<100000){
        cout<<"5"<<endl;
    }else if(i+o<1000000){
        cout<<"6"<<endl;
    }else if(i+o<10000000){
        cout<<"7"<<endl;
    }else{
        break;
    }
    }
}

C++: #include <iostream>

using namespace std;

int main(){
	int n, m, dig;
    while(cin >> n >> m){
        n += m;
        while(n){
            sum /= 10;
            dig++;
        }
        cout << dig << endl;
    }
}

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

int main(void){
    int a, b;
    while(cin >> a >> b){
        cout << to_string(a + b).size() << endl;
    }
}

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

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

C++: #include<stdio.h>
int main(void)
{
	int dec1[3],dec2[3],sum[3],keta[3]={0,0,0};
	for(int f1=0;f1<3;f1++){
		scanf("%d %d",&dec1[f1],&dec2[f1]);
		sum[f1]=dec1[f1]+dec2[f1];
	}
	for(int f1=0;f1<3;f1++){
		while(sum[f1]>=10){
			sum[f1]=sum[f1]/10;
			keta[f1]++;
		}
	}
	for(int f1=0;f1<3;f1++){
		printf("%d\n",keta[f1]+1);
	}
	return 0;
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;

typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){

  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ret;
    ss >> ret;   
    cout << ret.size() << endl;
  }

  for(int j=0;j<=100000;j++){
    string name = "out";
    stringstream ss;
    ss << j;
    string index;
    ss >> index;
    name += index+".txt";
    ofstream ofs(name.c_str());
      ofs << string(100000,'?') << endl;
    
  }

return 0;
}