Go: package main

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

func main() {
	sc := bufio.NewScanner(os.Stdin)
	for sc.Scan() {
		str := strings.Split(sc.Text(), " ")
		if len(str) != 2 {
			return
		}
		a, err1 := strconv.ParseInt(str[0], 10, 64)
		b, err2 := strconv.ParseInt(str[1], 10, 64)
		if err1 != nil || err2 != nil {
			return
		}
		a += b
		for b = 0; a > 0; a /= 10 {
			b++
		}
		fmt.Println(b)
	}
}

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

int get_number_of_digits(int num)
{
    if(num == 0)
        return 1;
        
    int digit = 0;
    while(num != 0){
        num /= 10;
        ++digit;
    }
    return digit;
}

int main()
{
    const int num_of_data = 200;
    const int min = 0;
    const int max = 1000000;
    
    int a, b;
    //std::cout << num_of_data << "個のまでの整数データa bの入力" << std::endl;
    for(int i = 0; i < num_of_data; ++i){
        std::cin >> a >> b;
        if(min <= a && a <= max && min <= b && b <= max)
        std::cout << get_number_of_digits(a + b) << std::endl;
        else{
            --i;
            //std::cout << "整数は" << min <<"以上" << max << "以下に設定" << std::endl;
        }
    }
    
    return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int a, b;

	while (cin >> a >> b) {
		int sum = a + b;
#if 0
		int n;
		for (n = 0; sum > 0; n++) {
			sum /= 10;
		}
		cout << n << endl;
#else
		if        (n > 10000000) {		n = 8;	} 
		} else if (n > 1000000) {		n = 7;	}
		} else if (n > 100000) {		n = 6;	}
		} else if (n > 10000) {		n = 5;	}
		} else if (n > 1000) {		n = 4;	}
		} else if (n > 100) {		n = 3;	}
		} else if (n > 10) {		n = 2;	}
		} else if (n > 1) {			n = 1;	}
		} else {					n = 0;
		}
	
#endif
	}
	return 0;
}

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

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

C++: #include<bits/stdc++.h>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cctype>

#include<cmath>
#include<iostream>
#include<fstream>

#include<string>
#include<vector>
#include<queue>
#include<map>
#include<algorithm>
#include<set>
#include<sstream>
#include<stack>

using namespace std;

int main()
{
    long long int n,i,j,a,b,aa,bb,digit,digit1,ck=0,dk=0;
    while(scanf("%lld %lld", &a, &b)){
        if(a<=0 && b<=0) break;
    aa = a;
    bb = b;
    while(a){
        digit = a%10;
        a/=10;
        if(digit==0) continue;
        else{
            if(aa%(digit)==0) ck++;
        }
    }

    while(b){
        digit1 = b%10;
        b/=10;
        if(digit1==0) continue;
        else{
            if(bb%(digit1)==0) dk++;
        }
    }
    cout<<ck+dk<<endl;
    ck=0,dk=0;
    }
}

C++: import java.util.*;
import static java.util.Arrays.*;
import static java.lang.Math.*;
public class Main {

	static Scanner sc = new Scanner(System.in);
	
	public static void main(String[] args) {
		while (read()) {
			solve();
		}
	}
	
	static int a, b;
	static boolean read() {
		if (!sc.hasNextInt()) return false;
		a = sc.nextInt(); b = sc.nextInt();
		return true;
	}
	
	static void solve() {
		int sum = a + b, res = 0;
		while (sum > 0) {
			sum /= 10;
			res++;
		}
		System.out.println(res);
	}
}

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

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

C++: #define _USE_MATH_DEFINES

#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
#include <numeric>

using namespace std;

int main()
{
	int a, b;
	for (; cin >> a >> b;)
	{
		cout << to_string(a + b).length() << endl;
	}
}

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

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

using namespace std;

int main() {
	int a, b, c;
	while(scanf("%d %d", &a, &b) != EOF){
		c = (int)log10(a+b);
		printf("%d\n", c);
	}
	return 0;
}

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

}

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

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int m = a+b;
		int d = 0;
		if(m == 0){
			cout << "1" << endl;
			continue;
		}
		while(m > 0){
			m /= 10;
			d++;
		}
		cout << d << endl;
	}
	return 0;
}

C++: #include<stdio.h>
int main(void) {
	int a, b, d = 1,l=0;
	while (l<200)
	{
		scanf("%d %d", &a, &b);
		for (size_t i = 10; ; i *= 10)
		{
			if ((a + b) / i == 0)break;
			d++;
		}
		printf("%d\n", d);
		a = 0; b = 0; d = 1;
		l++;
	}
	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>
#include <cstdio>
using namespace std;
int main() {
    int a, b;
    while (cin >> a >> b)
        cout << a + b << endl;
}

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

int hoge(int sum,int cnt){
	if(sum/10<=9) return cnt;
	else return hoge(sum/10,++cnt);
}

int main(){
	for(;;){
		int a,b;
		cin>>a>>b;
		if(cin.fail()) break;
		if(a+b<10) cout<<1<<endl;
		else cout<<hoge(a+b,2)<<endl;
	}
	return 0;
}

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

int main(){
int a;
int b;
int c;
int n;
int d;
while(cin >> a >> b){
c=a+b;
d=1;
n=0;
while(1){
if(d>c){break;}
d=d*10;
n=n+1;}
cout << n << endl;
}
    return 0;
}

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

#define     MAX_NUMBER     200

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

	while(cin >> num1 >> num2){
		//整形
		sprintf_s(str,"%d\0",(num1 + num2));

		// 文字数計測
		for(i=0;str[i] != '\0';i++){
		}

		// 文字数表示
		cout << i << endl;
	}

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a, b, sum;
    
    while(true){
        cin >> a >> b;
        if(cin.fail()) break;
        
        sum = a + b;
        
        if(sum / 10 != 0 && sum / 100 == 0)
            cout << 2 << endl;
        else if(sum / 100 != 0 && sum / 1000 == 0)
            cout << 3 << endl;
        else if(sum / 1000 != 0 && sum / 10000 == 0)
            cout << 4 << endl;
        else if(sum / 10000 != 0 && sum / 100000 == 0)
            cout << 5 << endl;
        else if(sum / 100000 != 0 && sum / 1000000 == 0)
            cout << 6 << endl;
        else 
            cout << 7 << endl;
    }
}

C++: #include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<vector>

using namespace std;

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

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

int main()
{  
  int buff,buff2,result;
  cin >> buff >> buff2;
  
  while(buff != 0)
  {
    buff += buff2;
    buff /= 10;
    result++;
  }

  cout << result << endl;
  return 0;
}

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(i=0;i<200;i++){
	scanf("%d %d",&x,&y);
	if((x+y) < 10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else printf("6\n");
	}
	return 0;
}

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

int c = 0;

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

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