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++: #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;

int main(){
	int a,b;
	while (scanf("%d %d",&a,&b) != -1){
		string s = to_string(a + b);
		cout << s.length() << endl;
	}
}

C++: #include <bits/stdc++.h>
using namespace std;
int main(void){
    int a,b,c,i;
    while ( scanf("%d %d",&a,&b) !=EOF ) {
        c = a + b;
        int count = 0;
        for (i=0;c!=0;i++) {
            c /= 10;
        }
        printf("%d\n",i);
    }
}

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

int main() {
    int a, b;

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

    return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
	for(;;){
		int a,b;
		if(scanf("%d %d",&a,&b) == EOF){break;}
		int c = a+b, count = 0;
		while(c>0){
			c=c/10;
			count++;
		}
		cout <<count<<endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(void)
{
	int a, b;
        int keta = 1;

	while (cin >> a >> b)
	{
		a += b;
		while ((a /= 10) != 0) keta++;

	}

	cout << keta << endl;

	return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
// Welcome to my source code!

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

C++: #include<cstdio>

int main()
{
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF)
	{
		int count=1;
		double d=a+b;
		while(d>=10)
		{
			d/=10;
			count++;
		}
		printf("%d\n",count);
	}
	return 0;
}

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

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

C++: #include<stdio.h>
int main(void)
{
	int i,j,temp,y[10];
	for(i=0;i<10;i++){
		scanf("%d",&y[i]);
	}
	for(i=0;i<10;i++){
		for(j=0;j<=10;j++){
			if(y[j]<=y[i]){
				temp=y[i];
				y[i]=y[j];
				y[j]=temp;
			}
		}
	}
	for(i=0;i<3;i++){
		printf("%d\n",y[i]);
	}
	return 0;
}

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

int main()
{
	while(true){
		int a,b,c;
		char str[16];
		cin >> a >>b;

		c = sprintf(str,"%d",a + b);

		cout << c << endl;
	}
	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>
int main(){
	int a,b;
	while(std::cin>>a>>b){
		int n=a+b;
		if(n<10)std::cout<<1<<std::endl;
		else if(n<100)std::cout<<2<<std::endl;
		else if(n<1000)std::cout<<3<<std::endl;
		else if(n<10000)std::cout<<4<<std::endl;
		else if(n<100000)std::cout<<5<<std::endl;
		else if(n<1000000)std::cout<<6<<std::endl;
		else if(n<10000000)std::cout<<7<<std::endl;
		else if(n<100000000)std::cout<<8<<std::endl;
	}
	return 0;
}

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

using namespace std;


int main(){
	int a,b;
	while (cin >>  a >>  b){
		int l = a+b;
		char n[50];
		l=sprintf (n,"%d",a+b);
		cout << l << endl;
	
	}
	return 0;
	}
	}

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

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

C++: #define _USE_MATH_DEFINES
#include <iostream> 
#include <string>
#include <map>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int a, b, ans;
	cin >> a >> b;
	ans = log10(a+b) + 1;
	cout << ans << endl;
	return 0;
}

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

using namespace std;

long int a, b;
long int sum,ans;

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

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
  long long a,b,ans;
  string s;
  for(int i=0;i<200;i++){
	cin >> a >> b;
	ans=a+b;
	s=to_string(ans);
	cout << s.size() << endl;
  }
  return 0;
}

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

int main(void)
{
    int i;
    int x, y;

    for (;;) {
        scanf("%d %d", &x, &y);
        x += y;
        for (i = 1; ; i++) {
            x /= 10;
            if (x == 0) {
                break;
            }
        }
        printf("%d\n", i);
    }

    return 0;
}

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

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

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

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

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

C++: #include<stdio.h>
int main(){
  int a,b,c;
  while(scanf("%d%d",&a,&b)!=EOF){
  	c = a + b;
  	if(c<10) printf("1");
  	else if(c<100) printf("2");
  	else if(c<1000) printf("3");
  	else if(c<10000) printf("4");
  	else if(c<100000) printf("5");
  	else if(c<1000000) printf("6");
  	else printf("7");
  }
  return 0;
}

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

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

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

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