Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

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

C++: #include <iostream>
#include <string>
using namespace std;
int main()
{
	int a, b;
	while (1){
		cin >> a;
		if (a < 0){
			break;
		}
		cin >> b;
		auto sum = a + b;
		string str(to_string(sum));
		cout << str.size();
	}

}

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

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

int main(){
	string cunning="77675555555555555555555555555555555555555455555555555555555555555555555555555555555555555555555555555555";
	for(int i=0;i<104;i++) cout<<cunning[i]<<endl;
	return 0;
}

C++: #include <iostream>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <assert.h>

using namespace std;

#define set 200;
int main()
{

int a,b,sum;
ifstream fin;



 	fin.open("datasets.txt",ios::in);
	assert (!fin.fail( ));
    if (a>=0 || b<=1000000)
	{
     fin >> a >> b;
	while (!fin.eof( ))     
     {
        fin >> a >> b;
        cout << a << "\t" << b <<endl;
		cout << ceil(log10(a+b)) << endl;
	 }

	 fin.close( );
	 

	}
     return 0;


}

C++: #include <iostream>
using namespace std;
int main(){
  int a;
  int b;
  int k;//足した和
  int p;//引く数 

  for(;;){
    cin >> a >> b;
    k=a+b;
    for(int i=0;i<1000001;i++){
      p=1;
      for(int j=1;j<i;j++){
	p=p*10;
      }
    
      if(k<p){
	cout << i-1 << endl;
	i=99999999;
      }	 
    }
  }
}

C++: #include <iostream>

using namespace std;

int counts(char[] num) {
	int count = 0;
	for (int i = 0; i < num.length; i++) {
		if (num[i] != "0") count++;
	}
	return count;
}

int main() {
	for (int a, b; cin >> a >> b && a && b) {
	  char[] as = (char[])a;
	  char[] bs = (char[])b;
		cout << counts(as)+counts(bs) << endl;
	}
}

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 (!cin.eof()) {
    uint32_t a, b;
    cin >> a >> b;
    cout << to_string(a + b).size() << endl;
  }

  return 0;
}

C++: #include<cstdio>
char s[9];int main(){for(int a,b;~scanf("%d %d",a,b);printf("%d\n",sprintf(s,"%s",a+b)));}

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

int c = 0;

void keta(int C) {
	if (C > 9) {
		c++;
		keta(C/10);
	}
	return;
}

int main()
{
	while (1) {
		c = 0;
		int A, B,C;
		cin >> A>> B;
		C = A + B;
		keta(C);
		c++;
		cout << c<<endl;
	}
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(void){
	int a,b;
	while(cin>>a>>b)
		for(a+=b,b=0;a>0;b++,a/=10);
		cout<<b<<endl;
	}
}

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

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

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

using namespace std;

int main(void)
{

	for(int i = 0; i < 3; i++){
		int a, b;
		scanf("%d %d", &a, &b);
		a+=b;
		int d = 1;
a /= 10;
		while(a > 0){
			a /= 10;
			d++;
		}
		cout << d << endl;
	}

	return 0;
}

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

using namespace std;

int digit(int num){
	if((num / 10) > 0){
		return (digit(num/10))+1;
	}
	else return 1;
}

int main(){
	int num1,num2,result=0;
	char buf[256];
	while(1){
		gets(buf);
		if(buf[0] == '\0')break;
		num1 = 0;
		num2 = 0;
		sprintf(buf,"%d %d",num1,num2);
		result += digit(num1);
		result += digit(num2);
		cout << result << endl;
	}
	return 0;
}

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

int main(){

int i,d,n1,n2,sum,c;


int a[d],b[d];


d=0;
while(d<200){
   cin >> n1 >> n2;
   if(n1 >= 0 and n1 <= 1000000 and n2 >= 0 and n2 <= 1000000){
       a[i]=n1;
       b[i]=n2;
    }
    d++;
}



for (i = 0; i < d; i++) {
     c=0;
     sum=a[i]+b[i];
     while((sum/10)!=0){
         c++;
         sum=sum/10;
     }
   cout << c+1 << "\n";
}

    return 0;
}

C++: #include <iostream>
using namespace std;
int main (){
  int a;
  int b;
  int k;
  int h;
  for(;;){
  cin >>a>>b;
  k=a+b;
  h=0;
  if (k<10&&h==0){
      cout << "1"<<endl;
      h=1;
  }
  if (k<100&&h==0){
    cout << "2"<<endl;
    h=1;
      }
  if (k<1000&&h==0){
    cout << "3"<<endl;
    h=1;
      }
  if (k<10000&&h==0){
    cout << "4"<<endl;
    h=1;
      }
  if (k<100000&&h==0){
    cout << "5"<<endl;
    h=1;
      }
  if (k<1000000&&h==0){
    cout << "6"<<endl;
    h=1;
      }
  if (k<10000000&&h==0){
    cout << "7"<<endl;
    h=1;
      }
  if (k<100000000&&h==0){
    cout << "8"<<endl;
    h=1;
      }
  if (k<1000000000&&h==0){
    cout << "9"<<endl;
    h=1;
      }
  if (k<10000000000&&h==0){
    cout << "10"<<endl;
    h=1;
      }
  }
}

C++: #include <iostream>

int main()
{
	int count, a, b, tmp;

	while(std::cin>>a>>b){
		count = 0;
		tmp = a + b;
		while(tmp > 0){
			count++;
			tmp /= 10;
		}
		std::cout<<count<<std::endl;
	}
	return 0;
}

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

int main(void){
  int c = 0, i = 0, a, b, d;
  char tmp[8]; // 0 - 1000000
//  while(c != EOF){
    while((c = getchar()) != EOF && c != '\n'){
      tmp[i++] = c;
      if(c == ' '){
        tmp[i] = '\0';
        a = atoi(tmp);
        i = 0;
      }
    }
    tmp[i] = '\0';
    b = atoi(tmp);

    d = a + b;
    for(i = 0; d != 0; i++){
      d /= 10;
    }
    printf("%d\n", i);
  //}
  return 0;
}

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

using namespace std;

class cDigitNumber
{
public:
	int count(int, int);
};

int cDigitNumber::count(int a, int b)
{
	long long t = a + b;
	int count = 0;
	while (t >= 10)
	{
		++count;
		t /= 10;
	}
	return ++count;
}

int main()
{
	cin.tie(0);
	ios::sync_with_stdio(false);

	cDigitNumber cdn;
	int a, b;

	while (!cin.eof())
	{
		cin >> a >> b;
		cout << cdn.count(a, b) << endl;
	}

	return 0;
}

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

int main(void){
	int a,b,T,c,d,e,f,g,h,i,A=0;
	while(cin>>a>>b){
		cin>>a>>b;
		T=a+b;
		
		c=T/1000000;
		if(c>=1) A=A+1;
		
		d=T/100000;
		if(d>=1)A=A+1;
		
		e=T/10000;
		if(e>=1)A=A+1;
		
		f=T/1000;
		if(f>=1)A=A+1;
		
		g=T/100;
		if(f>=1)A=A+1;
		
		h=T/10;
		if(h>=1)A=A+1;
		
		i=T/1;
		if(i>=1)A=A+1;
		
		cout<<A<<endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

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


	return 0;
}

C++: #include <stdio.h>

int main()
{
	int a,b;

	while(1)
	{
		int kai;
		int i = 1;
		int j = scanf("%d %d" , &a,&b);
		if(j==EOF) break;

		kai = a+b;

		while(kai > 9)
		{
			kai /= 10;
			i++;
		}

		printf("%d\n" , i);
	}
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=0;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==150) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}