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 <bits/stdc++.h>

using namespace std;

int main(){
	while (true){
	int a,b;
	cin>>a>>b;
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>99){
		cout<<5<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
	}

C++: #include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a,b;
	cin >> a>>b;
string stream ss;
  ss << number;
   string x=ss.str();
cout<<x.size()<<endl;
return 0;
}

C++: #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<iostream>
using namespace std;
int main()
{
	int a,b,sum,n;
	while (cin >> a >> b)
	{
		n=0;
		sum = a+b;
		while (sum != 0)
		{
			sum /= 10;
			n++;
		}
		cout<<n<<endl;
	}
	return false;
}

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

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

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

using namespace std;

int main()
{
	int num1[3], num2[3], sum[3];
	for (int i = 0; i < 3; i++)
	{
		cin >> num1[i] >> num2[i];
		sum[i] = num1[i] + num2[i];
	}
	
	for (int i = 0; i < 3; i++)
	{
		int n = 1;

		while (!((sum[i] % (int)pow(10, n)) == sum[i]))
			n++;

		cout << n << endl;
	}
	return 0;
}

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

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

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

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

  return 0;
}

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

using namespace std;

int main() {
	int a, b;
	int c;

	while (cin >> a >> b) {
		c = a + b;
		if (c / 10 > 0) {
			if (c / 100 > 0) {
				if (c / 1000 > 0) {
					if(c / 10000 > 0) {
						if(c / 100000 > 0) {
							if(c / 1000000 > 0) {
								printf("7\n");
							} else {
								printf("6\n");
							}
						} else {
							printf("5\n");
						}
					} else {
						printf("4\n");
					}
				} else {
					printf("3\n");
				}
			} else {
				printf("2\n");
			}
		} else {
			printf("1\n");
		}
	}

	return 0;
}

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

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

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

for(int k=0;k<200;k++){
int i,j;
cin >> i >> j;
cout << i+j << endl;
}

return 0;
}

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




int main()
{
	long long int a,b;
	char c1[15],c2[15];
	int count=0;
	int i;
	while(scanf("%lld %lld",&a,&b)==2)
	{
		itoa(a,c1,10);
		itoa(b,c2,10);
		i=0;
		while(i<strlen(c1))
		{
			if(c1[i]!='0')
			{
				count++;
			}
			i++;
		}
		i=0;
		while(i<strlen(c2))
		{
			if(c2[i]!='0')
			{
				count++;
			}
			i++;
		}
		cout<<count<<endl;
		count=0;

	}
}

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

using namespace std;

int main(void){
  int a,b;
  int sum;
  

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

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

int main(){
	int a, b;

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

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

C++: #include <iostream>

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

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

int main(){
	int a, b;
	list<int> digit;
	
	while((cin>>a>>b).eof()){
		if((a+b)>0){
			string stream c << a+b;
			digit.push_back(c.str().size());
		}
		
	}
	list<int>::iterator it = digit.begin();
	while(it != digit.end()){
		cout << *it << endl;
		it++;		
	}
	
 	return 0;
}

C++: #include <iostream>
using namespace std;
int solve(int a,int b){
    int sum=a+b,ans=0;
    while(sum>0){
        ans++;
        sum/=10;
    }
    return ans;
}
int main(void){
    int a[300]={},b[300]={},i=0;
    cin>>a[0]>>b[0];
    cout<<solve(a[0],b[0])<<endl;
    a[0]=2000000;
    while(a[i]!=a[i+1]&&b[i]!=b[i+1]){
        i++;
        cin>>a[i]>>b[i];
    }
    for(int j=1;j<i;j++){
        cout<<solve(a[j],b[j])<<endl;
    }
    return 0;
}

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


int main(){

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

	return 0;
}

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

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

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

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

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

int main(){
	int a,b,c,d=1,e=0,i ;
	//int c[3];

	cin >> a >> b ;

	c = a + b ;

	for(i=1;i<7;i++){
		c = c / 10 ;
		
		if(c == 0) break;

	}

	cout << i << endl ;

    return 0;
}

C++: #include <iostream>

using namespace std;

void digit();

int a, b;

int main() {


	while(cin >> a >> b) {
		digit();
	}

	return 0;

}

void digit() {
	
	int i=0;
	a+=b;

	while(a!=0) {
		a/=10;
		i++;
	}

	cout << i << endl;

}

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<<2<<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,sum=0;
    cin>>a>>b;
    sum=a+b;
    if(sum<10)cout<<"1"<<endl;
    else if(sum<100)cout<<"2"<<endl;
    else if(sum<1000)cout<<"3"<<endl;
    else if(sum<10000)cout<<"4"<<endl;
    else if(sum<100000)cout<<"5"<<endl;
    else if(sum<1000000)cout<<"6"<<endl;
    else if(sum<10000000)cout<<"7"<<endl;
else if(sum<100000000)out<<"8"<<endl;
return 0;
}

C++: #include<stdio.h>

int main(){
	int a, b;
	scanf("%d %d", &a, &b);

	int s = a + b;
	int d = 1;
	while(1){
		if(s >= 10){
			s = s/10;
			d++;
		}else{
			break;
		}
	}

	printf("%d\n", d);

	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

int main(){
	while (true){
	int a,b;
	cin>>a>>b;
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>99){
		cout<<5<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
	}