Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int

		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}

		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

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

using namespace std;
#define MAX_N 200
int a,b;
int s;
int Count;
int main(){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s != 0; s/=10){
    Count++;
  }
  

  cout << Count<<endl;
  return 0;
}

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

int main(){
	int a,b;
	int sum,nDigit=1;

	cin >> a >> b;

	sum = a + b;

	while(sum>=10){
		sum=sum/10;
		nDigit++;
	}

	cout << nDigit << endl;

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555544";
	
	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,x;
  int sum=0;
  int conter=0;
	cin >>a>>b;
 sum=a+b;
 x=sum;	
while(x>=1)
{

x=x/10;
conter++;
}
cout<<conter;
	return 0;
}

C++: #include<cstdio>
int main(){
	int n,n1,n2,count,a;
	while(scanf("%d%d",&n1,&n2)!=EOF){
		count=0;
		a=n1+n2;
		while(a!=0){
			a=a/10;
			count++;
		}
	printf("%d\n",count);
	}
	return 0;
}

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;
scanf("%d",&x);scanf("%d",&y);
w=x+y;
while(1)
{
if(w==0){cou++;break;}
else {w=w/10; cou++;}
}
printf("%d\n",cou);
return 0;
}

C++: #include<iostream>
int main() {
	int a, b;
	std::cin >> a >> b;
	int c = a + b;
	int n = 0;
	if (c / 10 >= 1) {
		n++;
		c = c / 10;
	}
	std::cout << n << std::endl;
	return 0;
}

C++: #include<stdio.h>
#include<algorithm>
using namespace std;
int d[11];
int main(){
	int a,b;
	while(~scanf("%d%d",&a,&b)){
		int c=a+b;
		int ret=0;
		while(c){
			ret++;
			c/=10;
		}
		printf("%d\n",ret);
	}
}

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

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

while(cin>>a>>b){
  cnt=0;
  tmp=a+b;
  while(tmp>0){
    cnt++;
    tmp/=10;
  }
  cout<<cnt<<endl;
 }
}

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

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

  return 0;
}

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

using namespace std;
#define MAX_N 200
int a,b;
int s;
int Count;
int main(){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s != 0; s/=10){
    Count++;
  }
  

  cout << Count<<endl;
  return 0;
}

C++: #include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;i++)
using namespace std;
typedef long long ll;

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

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

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

using namespace std;

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

C++: #include <iostream>

using namespace std;

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

C++: #include<stdio.h>
#include<string.h>
int main(void)
{
    long int a,b,c,d;
    char bb[7];
    while((scanf("%d %d",&a,&b))==2)
    {
        c= a+b;
        itoa(c,bb,10);
       d = strlen(bb);
      printf("%d\n",d);
    }
    return 0;
}

C++: #include <iostream>
#include <sstream>
int main()
{
        for(uint8_t i=0;i<200;i++)
        {
                std::string str;
                getline(std::cin, str);
                std::stringstream s(str);
                uint32_t a,b;
                s>>a>>b;
                uint32_t sum=a+b;
                uint8_t count;
                for(count=0;sum>0;count++)
                        sum=sum/10;
                if(count==0)
                        count++;
                printf("%u\n",count);
        }

        return 0;
}

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

	cin >> a >> b ;
	ans = a+b;
	z = 0;
	while(1){
		z++;
		if(ans / 10 == 0){
			break;
		}
		ans = ans / 10;
	}

	cout << z;

	return 0;
}

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

#include <iostream>
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++:   1 #include<iostream>
  2 #include<stdio.h>
  3 using namespace std;
  4 int main(){
  5          
  6            int a,b;
  7              while(scanf("%d %d",&a,&b) != EOF){
  8                        int i = 0;
  9                          a = a + b; 
 10                            while(a > 0){
 11                                        a = a / 10;
 12                                            i++;
 13                                                  } 
 14                                                   
 15                                                     cout << i << endl;
 16                                                            
 17                                                        }   
 18 }

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;
    while(cin>>a>>b){
        int add=a+b;
        int cnt=1;
        while(cnt >= 10){ 
            add = add/10; 
            cnt++;  
        }       
        cout << cnt << endl;
    }
    return 0;
}

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

int main(){
	int a, b, at, bt;
	
loop:
	if(feof(stdin)) goto end_scope;
	scanf("%d %d\n", &a, &b);		// データセット
	{
		stringstream ss;
		ss << a+b;
		cout << ss.str().length() << endl;
	}
	goto loop;
end_scope:
    return 0;
}

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

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

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

int main()
{
	float a,b;
	int i=256;
	while(i){
		cin>>a;
		cin>>b;
		cout<<(int)log10(a+b)+1<<endl;
		i--;
	}
}

C++: #include<iostream>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x,y,z,count=1;
    cin >> x >> y;
    z = x + y;
    while(z/=10){
        count++;
    }
    cout<<count<<"\n";
}

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

int main() {
	int cnt = 0;
	char a;
	while (getchar()!= '\n') {
		cnt++;
	}
	while (getchar() != '\n') {
		cnt++;
	}
	cout << cnt<<endl;
	return 0;
}