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 <iostream>
#include <algorithm>
using namespace std;
int main()
{
	long long int a = 0;
	long long int b = 0;
	while (cin >> a, cin >> b)
	{
		long long int c = a + b;
		int d = 1;
		while (c >= 10)
		{
			c /= 10;
			d++;
		}
		cout << d << endl;
	}
	
	return 0;
}

C++: #include "bits/stdc++.h"
using namespace std;

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

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

using namespace std;

int main(){
    int a, b, num, digit;
    
    while(cin >> a)
    {
        cin >> b;
        num = a + b;
        digit = 0;
        while(num != 0)
        {
            num = num / 10;
            digit++;
        }
        cout << digit << endl;
    }
    return 0;
}

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

string sum(string s, string t){
    reverse(s.begin(), s.end());
    reverse(t.begin(), t.end());
    
    string res;
    int carry = 0;
    int md = max(t.size(), s.size());
    for(int i=0; i<=md; i++){
        int sc = i<s.size()? s[i]-'0': 0;
        int tc = i<t.size()? t[i]-'0': 0;
        int d = sc + tc + carry;
        char nd = '0' + (d%10);
        if(i == md && nd == '0')
            continue;
        res += nd;
        carry = d/10;
    }
    reverse(res.begin(), res.end());
    return res;
}

int main(){
    string s, t;
    while(cin >> s >> t){
        cout << sum(s, t).size() << endl;
    }
    return 0;
}

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

using namespace std;

int main(void) {
	int n, m, sum;
	vector<int> v;

	while (cin >> n >> m){
		int digit = 1;
		sum = n + m;
		while (sum /= 10) {
			digit++;
		}
		v.push_back(digit);
	}

	for (int i = 0; i < v.size(); i++) {
		cout << v[i] << endl;
	}

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  while(cin>>a>>b){
    int n =a+b;
    int cnt=0;
    while(n){
      n/=10;
      cnt++;
    }
    cout<<cnt<<endl;
  }
  return 0;
}

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

}
return 0;
}

C++: //============================================================================
// Name        : 0002.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

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

C++: #include <stdio.h>

int main(){

	int a=0,b=0,x=0;

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

C++: #include<bits/stdc++.h>
using namespace std;


int main(){
    long a, b, sum,r,count=0;

    while(scanf("%d %d",&a,&b)!=EOF){
        sum=a+b;
        //printf("%d\n",sum);

        while(sum){
            r=sum%10;
            count++;
            sum=sum/10;
        }
        printf("%d\n",count);
    }



return 0;
}

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

int main(){

	int a[100];
	int b[100];
	int i = 0;
	int N;

	while(1){
		cin >> a[i];
		cin >> b[i];

		if (a[i]==EOF) break;
		i++;
	}
	N = i;
	i = 0;
	
	int j=1;
	int ans=0;

	for(i;i<=N;i++){
		while(1){
			if((((a[i]+b[i]) / j))!=0){
				ans++;
			}
			else break;

			j = j * 10;
		}
		cout << ans << endl;
		ans = 0;
		j = 1;
	}

}

C++: #include<iostream>

using namespace std;

 int main(){
  int a,b,sum,count;
  
  while(cin >> a >> b){
  
   sum = a + b;
   count = 0;
   
   for(int i = sum; i >= 1; i/10){
    count++;
   }
    
   cout << count << endl;
    
  }
  
 return 0;
}

C++: #include	<iostream>

using namespace std;

int main(void) {
	while(1) {
		int a, b;
		int sum = 0, g = 1;
		
		cin >> a;
		if( cin.eof() )	{ break; }
		
		cin >> b;
		sum += a + b;
		
		while(sum >= 10) {
			g++;
			sum /= 10;
		}
		cout << g << endl;
	}
	
	return 0;
}

C++: #include <iostream>
#include <cmath>
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 a, b, k;
	cin >> a;
	while (a != ' ')
	{
		cin >> b;
		b += a;
		k = 0;
		while(b >= 1)
		{
			b /= 10;
			k += 1;
		}
		cout << k << endl;
		cin >> a;
	}
	return 0;
}

C++: #include<cstdio>
using namespace std;
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF){
int x=a+b;
for(int i=0;i<8;i++){
if(x<(1ei) printf("%d\n",i);
}
}
return 0;
}

C++: #include <cstdio>
using namespace std;
int a,b,s;
int p,cnt,ans;
int scan(){
  if(scanf("%d %d",&a,&b)==EOF) return 0;
  return s=a+b;
}
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(1){
    cnt=1;
    ans=count(scan());
    printf("%d\n",ans);
  }
}

C++: #include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int b[2];
	int count;

	for(i = 0; i < 2; i++){
		scanf("%d", &a[i]);
	}
	i = a[0] + a[1];
		count = 0;
		do{
			count++;
		}while((i = i/10) > 0);

		b[0] = count;

	printf("%d\n", b[0]);
	
	return 0;
	
}

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){
			while (1) {
				++cou;
				if (sum <= 1) break;
				sum /= 10;
			}
		}
		printf("%d", cou);
		cou = 0;
	}
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77675555555";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

  while(scanf("%d %d", &a, &b ) != EOF){
    int c = a + b;
    int n = 1;
    while(1){ 
      c /= 10;   
      if(c  == 0) break;
      n++;
    }
    cout << n << endl;
  }

  return 0;
}

C++: #include <iostream>
int main(void)
{
    int array[2];
    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++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	int a, b;
	cin >> a >> b;
	int c = log10((double)a) + 1;
	int d = log10((double)b) + 1;
	cout << c + d << endl;
}