Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

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

int main(){
  int tmp,tmp2;
  cin >> tmp >> tmp2;
  tmp += tmp2;
  
  cout << to_string(tmp).length << endl;
  return 0;

}

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

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

int main(){
	
	int a, b, sum;
	sum = a + b;
	int x[114514];
	int n = 0;
	
	
	while(cin >> a >> b){
		
		sum = a + b;
		int z = 0;
		
		while(sum != 0){
			sum = sum / 10;
			z++;
			
		}
		
		x[n] = z;
		n++;	
			
	}
	
	for(int c=0; c<n; c++){
		cout << x[c] << endl;
	}
	
	
	

	return 0;
	
}

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

int main() {
	long long int a, b;
	int p=1;
	long long int c=10;
	
	while(cin>>a>>b) {
		p=1;
		c=10;
		while(c<=a+b) {
			p++;
			c*=10;
		}

		cout<<p<<endl;
	}
}

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

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

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

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  long long a,b,ans=1,ten=10;
  cin>>a>>b;
  a+=b;
  while(a>=10){
    ans++;
    a/=10;
  }
  cout<<ans<<endl;
}

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

using namespace std;

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

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

int main(){
  while(true){
    int a,b;cin>>a>>b;
    string s(to_string(a+b));
    cout<<s.size()<<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(a<1173) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <cstdio>
int main()
{
        int a,b,c;
        while(scanf("%d",&a)!=EOF)
        {
                scanf(" %d",&b);
                c=a+b;
                int cnt,i;
                i=1;
                for(cnt=0;;cnt++)
                {       
                        if(c/i==0)break;
                        i=i*10;
                }
                printf("%d\n",cnt);
        }
         
        return 0;
}

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

int main()
{

	int i, num1, num2, total=0, digit, result=0;
	
	cout << "Enter an integer : " << endl;
	cin >> num1 >> num2;;
	
	total = num1 + num2;
	
	while(total>0)
	{
	digit = total/10;
	total /= 10;
	result++;	
	};
	
	cout << result << endl;

		
	return 0;
	
	}

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

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

C++: #include <iostream>
#include <math.h>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
int kaijo(int n){
	int ans = 1;
	if (n != 0){
		for (int i = 0; i < n; i++){
			ans *= (n - i);
		}
	}
	else{
		ans = 1;
	}
	return ans;
}

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

C++: #include<stdio.h>
int main(void)
{
	int a,s,d;
	while(scanf("%d %d",&a,&s)!=EOF){
	d=a+s;
	if(d>=0&&d<=9){
		printf("1\n");
	}
	else if(d>=10&&d<=99){
		printf("2\n");
	}
	else if(d>=100&&d<=999){
		printf("3\n");
	}
	else if(d>=1000&&d<=9999){
		printf("4\n");
	}
	else if(d>=10000&&d<=99999){
		printf("5\n");
	}
	else if(d>=100000&&d<=999999){
		printf("6\n");
	}
	else if(d>=1000000){
		printf("7\n");
	}
	}
	return 0;
}

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

int main(){

	int a, b;
	while( cin >> a >> b ){
		a = a+b;
		b = 1;

		while(a>1){
			a /= 10;
			b++;
		}
		cout << b << endl;
	}

	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	a += b;
	a = (int)log10((double)a) + 1;

	cout << a << endl;

	return 0;
}

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

int main()
{
	int a,b,c;
	cin >>a >>b;
	c = a+b;
	int ret = 1;
	for(int i=1;;i++){
		if( c/10 >=1 ){
			ret++;
         c /= 10;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
    
	return 0;
}

C++: #include <iostream>

using namespace std;

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

    return 0;
}

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

#define REP(i,n) for(int i=0;i<n;++i)
#define rep(n) REP(i,n)

int main()
{
	int hills[10];
	rep(10) cin>>hills[i];

	sort( hills, hills+10, greater<int>() );

	rep(3) cout<<hills[i]<<endl;

	return 0;
}

C++: #include <iostream>
int main()
{
	int a;
	int b;
	while(std::cin >> a >> b)
	{
		int number = 1;
		int data = a + b;
		for(int i = 0;;i++)
		{
			if(data / 10 != 0)
			{
				number += 1;
				data /= 10;
			}

			else if(data / 10 == 0)
			{
				break;
			}
		}
		std::cout << number << '\n';
	}
}

C++: #include<bits/stdc++.h>
#include<vector>
#include<list>
#include<stack>
#include<queue>
#include<algorithm>
using namespace std;


int main(){
    int a,b;
    while(scanf("%d %d",&a,&b)!=EOF){
        string s=to_string(a+b);
        printf("%d\n",s.size());
    }
    return 0;
}

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

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

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

int main(){
    long long a,b;
    while(cin >> a >> b;){
    long long sum = a + b;
    string str = to_string(sum);
    cout << str.length()<<endl;}
}

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

int main()
{
	int a, b;
	stringstream ss;
	string sum;
	cin >> a>>b;
	ss << a + b;
	sum = ss.str();

	cout << sum.size() << endl;

	return 0;
}

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

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::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;
  }
}