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>
using namespace std;

int main() {
	int a, b;

	while (cin >> a >> b) {
		int sum, i;
		sum = a + b;
		for (i = 0; sum > 9;i++){
			sum /= 10;
		}
		cout << i+1 << endl;
	}

	return  0;
}

C++: #include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>

using namespace std;

int main()
{
	char buf[2000];
	int a,b,c;

	while(fgets(buf,sizeof(buf),stdin)!=NULL){
		c=1;
		a=atoi(strtok(buf," ")); b=atoi(strtok(NULL,"\n"));
		a+=b; while(a/=10) c++;

		cout<<c<<endl;

	}

}

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

int a, b;
int _sum;

int main() {
	while (1) {
		if (std::cin.eof())
			break;
		std::cin >> a >> b;
		int i = 1;
		a += b;
		while (1) {
			a /= 10;
			if (a == 0)
				break;
			++i;
		}
		_sum = i;
		std::cout << _sum << std::endl;
	}
	return 0;
}

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

int main(){
	int a[400]={0};
	int i=0,n=0,s=0,d=0;
	while(cin>>a[i++]);n=i-1;
	
	for(int j=0;j<n;j+=2){
		cout<<a[j]<<" "<<a[j+1]<<endl;
	}
	
	for(int j=0;j<n;j+=2){
		s=a[j]+a[j+1];
		d=(int)log10((double)s);d++;
		cout<<d<<endl;
	}
	
	return 0;
}

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

C++: #include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
    int a , b;
    while( cin >> a >> b ){
        stringstream ss;
        ss << a+b ;
        string str = ss.str();
        cout << str.size() << endl;
    }
}

C++: #include <stdio.h>

using namespace std;


int main(){
	int a,b,count,s;

	while(scanf("%d %d",&a,&b)!=EOF){
		count=0;
		s=a+b;
		while(s!=0){
			s/=10;
			count++;
		}
		printf("%d\n",count);
	}

    return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a, b;
	int sum;
	int ans;
	
	while (scanf("%d %d", &a, &b) != EOF){
		sum = a + b;
		ans = 0;
		
		while (sum){
			ans++;
			sum /= 10;
		}
		
		printf("%d\n", ans);
	}
	
	return (0);
}

C++: #include <iostream>
int main(void){
	int a,b;
    while (std::cin>>a>>b){
		a+=b;
		b=0;
		do{b++,a/=10;}while(a);
        std::cout<<b<<"\n";
    }
}

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

int main(){

	int a;
	int b;

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

C++: #include<stdio.h>

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

    while(scanf("%d %d",&a,&b) !=EOF){

        printf("%d\n",a+b);

    }


    return 0;
}

C++: #include<stdio.h>
#include<math.h>
int main(void)
{
	int n,a,s,w,i,x,c;
	while(scanf("%d %d",&n,&a)!=EOF)  {
//		c=0;
		w=n+a;	
		for(i=0;w!=0;i++){		
			w=w/10;
//			c++;	
		}
		printf("%d\n",i);
	}
	return 0;
}

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

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

using namespace std;

int main(){
  string a, b;
  while(cin >> a >> b){
    while(a.size() > b.size()) b = "0" + b;
    while(a.size() < b.size()) a = "0" + a;
    int c = 0;
    for(int i=a.size()-1;i>=0;i--){
       c = (a[i]-'0'+b[i]-'0'+c)%10;
    }
    cout << a.size() + c << endl;
  }
}

C++: 
  #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  long long a,b;
  for(int i=0;i<200;i++){
    cin >>a>>b;
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=1,x;
  x=a+b;
  while(1){
    if(x/10<1)break;
  x/=10;
  count++;
}
  return count;}

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

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

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

using namespace std;

int a, b;

void solve(int n) {
	if (!n) return;
	++b, solve(n / 10);
}

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

C++: #include <iostream>

using namespace std;

int main() {
	int a,b,c,ans;
	for(int i = 0; i < 200; i++){
		cin >> a >> b;
		if(0 <= a && 0 <= b && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

C++: #define scanf_s scanf
#include <string>
#include <stdio.h>
#include <math.h>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (int i = 0; i < cou; ++i) {
		printf("%d\n", ans[i]);
	}
}

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

using namespace std;

void readData(vector<string>& input_data){
    string buff;
    while(getline(cin, buff))
        input_data.push_back(buff);
}

int perseString(string line) {
    stringstream ss;
    ss << line;

    int a, b;
    ss >> a >> b;

    return a + b;
}

int countDigit(int n){
    int cnt = 1;

    while(n /= 10)
        ++cnt;

    return cnt;
}

void mainRoutine(){
    vector<string> input_data;

    readData(input_data);

    for(int i = 0; i < input_data.size(); ++i){
        auto ret = perseString(input_data[i]);
        cout << countDigit(ret) << endl;
    }
}

int main() {
    mainRoutine();

    return 0;
}

C++: #include <iostream>

using namespace std;
int main()
{
	int a,b;
	while (1){
		cin >> a;
		if (a == EOF) return;
		cin >> b;
		if (b == EOF) return;
		cout << a + b << endl;
	}
}

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

	long a,b;
	
	while(1){
		cin>>a>>b;
		
		long c = a+b;
		long d = 1;
		long e = 10;
		for(int j=0;j<10;j++){
			if(c == 0){
				cout<<1<<endl;
			}else if(c >= d && c < e){
				cout<<j+1<<endl;
			}
			d = d * 10;
			e = e * 10;
		}
		
	}	
	return 0;
}

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

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

int main(void){
	int a,b;
	int i;
	while(scanf("%d%d",&a,&b)!=EOF){
		a+=b;
		for(i=1; (a/=10); i++);
		printf("%d\n",i);
	}
	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(b!=0) flg=true; 
			break;
		}
		
		if(flg) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}