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,i,sum=1;
	for(i=1;i<=200;i++){
		cin>>a>>b;	
		a=a+b;
		while(a>10){
			a=a%10;
			sum++;
		}
		cout<<sum<<endl;
		sum=0;
	}
    return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){
	while(true){
		int i,j;
		cin>>i;
		cin>>j;
		if(cin.eof())
			break;
		i=i+j;
		cout << (int)log10((float)i)+1<<endl;
	}
	return 0;

}

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
  int a,b;
  while(cin >> a){
	cin >> b;
	int sum = a+b;
	string str;
	str = to_string(sum);
	cout << str.size() << 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(a<2500) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

using namespace std;

vector< int > adj;

int digit(int x)
{
    int ans = 0;
    while(x){ ans++; x/= 10;}
    return ans;
}
int main()
{
    int a, b;
    while(cin>> a >> b){
        cout<< digit(a + b) <<'\n';
    }
}

C++: /**/
//===============================================
#include <iostream>
using namespace std;
int counter=0;
//===============================================
int main()
{
	unsigned int n,i,m;
	for(;cin>>n,cin>>m;)
	{
		for(i=n;i;i=i/10)
		{
			if(i%10 != 0)
				counter++;
		}
		for(i=m;i;i=i/10)
		{
			if(i%10 != 0)
				counter++;
		}
		cout<<counter<<endl;
		counter=0;
	}
	return 0;
}

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

int main(){
  int l[200];
  int m[200];
  
  for(int i=0;i<200;i++){
    if(cin.eof()){break;}
    cin >> l[i];
    cin >> m[i];
  } 
  
  for(int j=0;l[j]!=NULL;j++){
  cout<< (int)log10(l[j]+m[j])+1 << endl;
  }
  return 0;
}

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

int main()
{
   int a,b;

   while(cin >> a >> b)
   {
      cout << a + b << endl;
   }

   return 0;
}

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

int main(){
  vector<int> sum;
  vector<string> truss;
  int a,b;
  while(cin >> a >> b) {
 sum.push_back(a+b);
  }
  for(int i=0;i<(int)sum.size();i++) { 
    truss.push_back(to_string(sum[i]));
  cout<<truss[i].size()<<endl;
  }
  return 0;
}

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

int main() {
    int a, b;
    while (true) {
        cin >> a >> b;
        int sum=a+b;
        int ans=0;
        while (true) {
            sum/=10;
            ans++;
            if (sum<=0) {
                break;
            }
        }
        printf("%d\n",ans);
    }
    return 0;
}

C++: #include<iostream>
using namespace std;
int main (){
	int a,b,gou,p,i;
		gou=0;
		while(cin>>a>>b){
		gou=a+b;
		for(int j=0;j<7;j++){
			if(gou>0){
				p++;
			}
			else if(gou<=0){
				break;
			}
			gou=gou/10;
		}
		cout<<p<<endl;
		p=0;
		}
	return 0;
}

C++: #include<iostream>

int a,b;

int Digit(int x){
	int t=10,ans=1;
	for(;x/t > 0; ans++){
		t *= 10;
	}
	return ans;
}

int main(){
	while(std::cin >> a >> b)
		std::cout << Digit(a+b) << std::endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main (void){

	int a,b,i=0;

	while(cin>>a>>b){


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

		cout<<i<<endl;
		i=0;
	}
}

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

int main(){
    int a,b,c,i;
	for(int j=0;j<250;j++){
		cin >> a >> b;
		if(a==EOF || b==EOF)break;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << endl;
	}

    
    return 0;
}

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


using namespace std;

int main()
{
	unsigned int a, b;
	string sa,sb;
	while (cin >> a && cin >> b)
	{
		stringstream ss;
		ss << (a + b);
		cout << ss.str().size() << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=8000;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int Digit(int a,int b){
    int ans,sum;
    ans = 0;
    sum = a+b;
    while(sum!=0){
        sum = sum/10;
        ans++;
    }
    return ans;
}

int main(){
    int x,y;
    int ans;

    while(cin >> x >> y){
    ans=Digit(x,y);
    cout << ans << endl;
    }
    return 0;
}

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

using namespace std;

int main(){
	while (!cin.eof()){
		int a, b;
		cin >> a >> b;
		int sum = a + b;
		cout << to_string(sum).size() << endl;
	}
	return 0;
}

C++: #include<stdio.h>

int main(){
 int a,b,c;
 while(~scanf("%d%d",&a,&b);){
 c=0;
 a+=b;
 while(a){
 a/=10;
 c++;
}
printf("%d\n",c);
}
return 0;
}

C++: #include<stdio.h>
int main(){
  int a,b,j,ab,total=1;
  while(scanf("%d %d",&a,&b)!=EOF){
    ab=a+b;
    total=1;
    for(j=0;j<6;j++){
      int i=10;
      if(ab/i>=1){
	total++;
      }
      i=10*i;
    }
    printf("%d\n",total);
  }
  return(0);
}

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

C++: #include "stdio.h"

int main(){
	int a=0,b=0,c=0,count=0;
	while(1){
	scanf("%d %d",&a,&b); 
	c = a + b;
	while(c > 0){
		c = c/10;
		count++;
	}
	printf("%d\n",count);
	if(count == 4){break;} 
	count = 0;
	}
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int a, b;
	while (cin >> a&&cin >> b)
	{
		int c = a + b;
		int digit,i;
		for (i = 1, digit = 1;c / i != 0;i *= 10, digit++);
		cout << digit-1 << endl;
	}
	return 0;
}

C++: #define _USE_MATH_DEFINES
#include <algorithm>
#include <cstdio>
#include <functional>
#include <iostream>
#include <cstring>
#include <climits>
#include <cmath>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <time.h>
#include <vector>
using namespace std;
 
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> i_i;
typedef pair<ll, int> ll_i;
typedef pair<double, int> d_i;
typedef pair<ll, ll> ll_ll;
typedef pair<double, double> d_d;
struct edge { int u, v; ll w; };
 
int MOD = 1000000007;

int main() {
	int a, b;
	while (cin >> a >> b) {
		int x = a + b;
		stringstream ss;
		ss << x;
		cout << ss.str().length() << endl;
	}
}

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

int digit(int a)
{
  int cnt = 0;
  
  while(1)
    { 
      a /= 10;
      cnt++;
      if(!a) break;
    }
  return cnt;
}
int main(){
  int a,b;

  while(scanf("%d%d",&a,&b) != EOF)
    {
      int n;
      int sum = a + b;
      
      n = digit(sum);
      
      cout << n << endl;
    }
  return 0;
}