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<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a,b;
	cin >> a>>b;
string ss="";
  ss << a+b;
   string x=ss.str();
cout<<x.size()<<endl;
return 0;
}

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

int main() {

	int a, b, c;
	char e[100];

	while (cin >> a >> b) {

		c = sprintf_s(e, "%d", a+b);

		cout << c << endl;
	}

	return 0;
}

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

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

C++: #include<iostream>
using namespace std;
int main()
{
int a,b,i;
i=0;
while(cin>>a>>b;)
{
cin>>a>>b;
if(a+b<10)
{
	cout<<1<<endl;
}
else if(a+b<100)
{
	cout<<2<<endl;
}
else if(a+b<1000)
{
	cout<<3<<endl;
}
else if(a+b<10000)
{
	cout<<4<<endl;
}
else if(a+b<100000)
{
	cout<<5<<endl;
}
else if(a+b<1000000) 
{
	cout<<6<<endl;
}
else if(a+b<10000000)
{
	cout<<7<<endl;
}
}
return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555555";
	
	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>
using namespace	std;

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

  return 0;
}

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

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

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

C++: #include <iostream>
#include<vector>
#include<stdlib.h>
#include<algorithm>
#include<string>
using namespace std;



int main(void){

	int a, b, sum = 0, count;

	while (cin>>a>>b){//??°????????????????????°?????????
		count = 0;
		cin >> a >> b;
		sum = a + b;


if(sum==0){cout<<0<<endl;}

		else if (sum != 0){


			sum /= 10;
			++count;

		}

		cout << count << endl;
	}

return 0;

}

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

using namespace std;



int main(){

	ifstream ifs;
	ofstream ofs;
	

	while (!ifs.eof()){
		int a, b, sum;
		cin >> a >> b;

		sum = a + b;

		int res = 0;
		int p = 1;

		for (int i = 1; i <= 10; i++){
			if (i != 1) p = p * 10;
			if (sum >= p&&sum < p * 10){
				res = i;
				break;
			}
		}
		
		cout << res << endl;
	}
	return 0;

}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555545555555555555555555555555555555555555555555";
	
	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 <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;

int keta(int a)
{
	if(a/1000000 >= 1)	return 7;
	else if(a/100000 >= 1)	return 6;
	else if(a/10000 >= 1)	return 5;
	else if(a/1000 >= 1)		return 4;
	else if(a/100 >= 1)		return 3;
	else if(a/10 >= 1)		return 2;
}

int main()
{
  int a,b,sum;
  while(scanf("%d %d",&a, &b)!=EOF){
    sum = a + b;
    cout << keta(sum) << endl;
  }
}

C++: import java.util.Scanner;

class Main{
	public static void main(String args[]){
		Scanner in = new Scanner(System.in);
		while(in.hasNext()){
			int a = in.nextInt();
			int b = in.nextInt();
			int c = (int)Math.log10(a+b) + 1;
			System.out.println(c);
		}
	}
}

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

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

C++: #include <iostream>

#include <sstream>

using namespace std;



int main() {

    int a, b;

    while (cin >> a >> b) {

        stringstream ss;

        ss << a+b;

        cout << ss.str().size() << endl;

    }

    return 0;

}

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

int digit(int v){
	int cnt = 1;
	while ((v /= 10) != 0)
		cnt++;
	return cnt;
}

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

	return 0;
}

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

int main(void) {
  while(1) {
    int a, b;
    cin >> a >> b;
    int x = a + b;
    int r = 0;
    while(x) {
      x /= 10;
      r++;
    }
  }
}

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


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

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

int a, b;

int main(void){
	while(cin >> a >> b){
		long int d=0, s; //d:digit s:sum
		s = a + b;
		while(s>=1){
			s = s/10;
			d++;
		}
		cout << d << endl;
	}
	return 0;
}

C++: package aoj.q0002; // 投稿時に削除

public class Main {
	public static void Main(String[] args) {
	
		int a =342;
		int b =652;
		int X =a+b;
		int keta = Integer.toString(X).length();

		while(0<X){
			X/= 10;
			}
     System.out.println(keta+1);


	}
}

C++: #include<iostream>
using namespace std;
int keta(int a,int b)
{
	return (a+b)/10-(a+b)%10;
}
int main()
{
	int a[200],b[200];
	for(int i = 0;i<200;i++){
		a[i]=0;
		b[i]=0;
	}
	int i=0;
	while(cin=="\n\n"){
		cin>>a[i],b[i];
		i++;
	}
	int j = 0;
	while(i<j){
		cout<<keta(a[j],b[j]);
		cout<<"\n";
		j++;
	}

	return 0;
}