Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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

#define GET_MACRO(a, b, c, d, NAME, ...) NAME
#define REP(...) GET_MACRO(__VA_ARGS__, REP4, REP3, REP2)(__VA_ARGS__)
#define REP2(i, a) REP3(i, 0, a)
#define REP3(i, a, b) REP4(i, a, b, 1)
#define REP4(i, a, b, s) for (int i = (a); i < (int)(b); i += (s))
#define REPR(...) GET_MACRO(__VA_ARGS__, REPR4, REPR3, REPR2)(__VA_ARGS__)
#define REPR2(i, a) REPR3(i, 0, a)
#define REPR3(i, a, b) REPR4(i, a, b, 1)
#define REPR4(i, a, b, s) for (int i = (b)-1; i >= (int)(a); i -= (s))
#define ALL(c) (c).begin(), (c).end()
#define DUMP(x) (std::cerr << #x << ':' << ' ' << x << '\n')
#define TMPL_T template <typename T>
#define TMPL_TU template <typename T, typename U>
#define mut auto
#define let const auto

using Int = long long;
// clang-format off
namespace extio {
std::string delimiter=" ",pdelimiter=" ";
std::string bracket_b="",bracket_e="";
void chdelim(const std::string&s){delimiter=s;}
void chpdelim(const std::string&s){pdelimiter=s;}
void chbracket(const std::string&b,const std::string&e){bracket_b=b,bracket_e=e;}
TMPL_T  void pcont(std::ostream&os,const T&x){int c=0;for(const auto&a:x){if(c++)os<<delimiter;os<<a;}}
TMPL_TU void ppair(std::ostream&os,const std::pair<T,U>&p){os<<bracket_b<<p.first<<pdelimiter<<p.second<<bracket_e;}
}
namespace std {
TMPL_T ostream& operator<<(ostream&os,const vector<T>&x){extio::pcont(os,x);return os;}
TMPL_T ostream& operator<<(ostream&os,const set<T>&x){extio::pcont(os,x);return os;}
TMPL_T ostream& operator<<(ostream&os,const multiset<T>&x){extio::pcont(os,x);return os;}
TMPL_T ostream& operator<<(ostream&os,const deque<T>&x){extio::pcont(os,x);return os;}
TMPL_TU ostream& operator<<(ostream&os,const map<T,U>&x){extio::pcont(os,x);return os;}
TMPL_TU ostream& operator<<(ostream&os,const pair<T,U>&x){extio::ppair(os,x);return os;}
}
TMPL_TU inline bool chmax(T&x,U a){return x<a&&(x=a,1);}
TMPL_TU inline bool chmin(T&x,U a){return a<x&&(x=a,1);}

inline int in(){int x;std::cin>>x;return x;}

struct Initializer_ {
  Initializer_(){
    std::cin.tie(0);
    std::ios::sync_with_stdio(0);
    std::cout << std::setprecision(10);
    std::cerr << std::setprecision(10);
  }
} precalc;
// clang-format on
// }}}

using namespace std;

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

C++: #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main()
{
    int f,s;
    int sum,cnt;
    while (cin >> f >> s)
    {
        sum = f+s;
        cnt = 0;
        while (sum)
            sum /= 10 , cnt ++;
        printf("%d\n",cnt);
    }
}

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

using namespace std;

int main(void) {
	vector<int> result;
	array<int, 2> input_add_number;
	while(cin >> input_add_number[0]){
		cin >> input_add_number[1];
		int add_result = input_add_number[0] + input_add_number[1];
		int count = 0;
		for(int i = 1; (add_result / i) != 0; i *= 10){
			count++;
		}
		result.push_back(count);
	}
	for(const auto element : result){
		cout << element << endl;
	}
	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main(void){
    int a,b,c,s;
    while(cin >> a >> b){
        s = a + b;
        for(c=0;c < 7;c ++){
            if(s > 0){
                s = s/10;
            }else{
                break;
            }
        }
        cout << c << endl;
    }
}

C++: #include <iostream>
int main(){int a,b,p;for(;!(std::cin>>a>>b).eof();std::cout<<p<<'\n')for(p=1,a+=b;a>9;p++)a/=10;}

C++: #include <bits/stdc++.h>
using namespace std;
int main()
{
    long long int a,b;
    cin>>a>>b;
    cout<<floor(log10(a+b)+1)<<endl;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(void){
	int a=0;
	int b=0;
	char c[80];
	scanf("%d %d", &a, &b);
	do{
		sprintf(c, "%d", a+b);
		printf("%d\n", strlen(c));
	}while(scanf("%d %d", &a, &b) != EOF);
	return 0;
}

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

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


}

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

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

C++: #include <cstdio>
??????
#define MAX 1000000
#define MIN 0
#define SIZE 200
??????
int main() {
??int i,j;
??int a,b;
??int cnt = 0;
??int buf = 0;
??int sets[SIZE];
??????
??while(scanf("%d %d",&a,&b) != EOF) {
????if((a < MIN) || (b > MAX)) {
??????continue;
????}
????????
????sets[cnt] = a + b;
????++cnt;
??}
????
??for(i = 0;i <= cnt;++i) {
????j = MAX;
??
????while(j != 0) {
??????if((sets[i] / j) != 0) {
????????++buf;
????????sets[i] -= (sets[i] / j) * j;
??????}
??????
??????j /= 10;
????}
????
  sets[i] = buf;
????buf = 0;
??}
????
??for(i = 0;i <= cnt;++i) {
????printf("%d\n",sets[i]);
??}
????
??return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int a[500], b[500],sum[500],d[500],k[500];
	int i = 0;
	k[500] = 0;
	while (1) {
		cin >> a[i] >> b[i];
		if (a[i] == 0 && b[i] == 0)break;
		sum[i] = a[i] + b[i];
		while (!sum[i]) {
			sum[i] /= 10;
			k[i]++;
		}
		i++;
	}
	for (int j = 0; j <= i-1;j++) {
		cout << k[j] << endl;
	}
	return 0;
}

C++: #include<stdio.h>

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

 while(1){
  int i=10;
  int count=1;

  if(scanf("%d %d",&a,&b)<2) break;
  
  sum=a+b;

  if(a<0 || b<0) break;

  while(1){
   if(sum<i){
   printf("%d\n" ,count);
   break;
   }else{
   i=i*10;
   count++;
   }
  }
 }
 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 <stdio.h>
#define N 16
int main(){
	char temp[N];
	int a[200],b[200];
	int i,j,k,n;
	char t[N];
	for(i=0;i<200;i++){
		fgets(temp,N,stdin);
		if(temp[1]!='\0'){
			sscanf_s(temp,"%d %d",&a[i],&b[i]);
		}else{
			j=i;
			break;
		}
		//j=scanf_s("%d %d",&a[i],&b[i]);
		//gets(t);
	}
	for(i=0;i<j;i++){
		k=1,n=0;
		while(a[i]+b[i]>=k){
			k*=10;
			n+=1;
		}
		printf("%d\n",n);
	}
	getchar();
	return 0;
}

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

int main()
{
    int IsB = 0,i = 0;
    char a[20],b[20],*digits;
    while(1){
        char str;
        scanf("%c",&str);
        if(str == EOF)break;
        if(str == ' '){
            i = 0;
            IsB = 1;
        }else if(str == '\n'){
            sprintf(digits,"%d",atoi(a) + atoi(b));
            printf("%d\n",strlen(digits));
        }else if(IsB == 0){
            a[i++] = str;
        }else{
            b[i++] = str;
        }
    }
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b)
        cout<<(int)log10(a+b)+1<<endl;

}

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

int digit(int num) {
    int cnt = 0;
    while(num != 0) {
        cnt++;
        num /= 10;
    }
    return(cnt);
}

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