Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

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

#define reps(v, f, l) for (int v = (f), v##_ = (l); v < v##_; ++v)
#define rep(v, n) reps(v, 0, n)
#define lep(v, n) reps(v, 1, n + 1)
#define rreps(v, f, l) for (int v = (l), v##_ = (f); v >= v##_; --v)
#define rrep(v, n) rreps(v, 0, n - 1)
#define rlep(v, n) rreps(v, 1, n)
#define show_a(a, size) rep(a##_it, size) std::cout << a[a##_it] << " \n"[a##_it == a##_it_ - 1];
#define show_v(v) show_a(v, v.size())
#define debug(x) std::cerr << #x << " = " << (x) << "\n";

using namespace std;

typedef long long int lint;

static inline int in(){ int x; scanf("%d", &x); return x; }
static inline lint inl(){ lint x; scanf("%lld", &x); return x; }

string toStr(int x)
{
  stringstream ss;
  ss << x;
  return ss.str();
}

int main()
{
  int a, b;
  while (~scanf("%d %d", &a, &b)){
    cout << toStr(a + b).size() << endl;
  }
  return 0;
}

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

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int a,b,x;

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

C++: import java.util.*;
public class Main{
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args){
    while(sc.hasNext()){
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = a+b;
        int ans = 1;
        //System.out.println(c);
        while(c >= 10){
        k++;
        c = c/10;
        //System.out.println(c);
        }
        System.out.println(k);
    }
    }
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555556";
	
	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<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
		double c=a+b;
		int ans=0;
		do{
			c=c/10;
			ans++;
		}
		while(c>0.9999999);
		cout<<ans<<endl;
	}
}

C++: #include <iostream>

using namespace std;
	int main() {
		int a,b,c,d;
		c=a+b;
		if(a<=1000000&&b<=1000000){
			for(int i=0;i<200;i++){
				for(int j=0;j<8;j++){
				d=c/10;
				if(d<1){
					cout<<j+1<<endl;}
				else {
					break;
				}
			}
		}
		return 0;
	}

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

using namespace std;

int main(){
	int a,b;
while(eof){
	}
	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>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

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

using namespace std;

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

    return 0;
}

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

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

C++: main(a,b){
  for(;~scanf("%d%d",&a,&b);puts(&a))
    a=log10(a+b)+49;
}

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

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

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

	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[3]={0},b[3]={0},sum[3]={0},keta[3]={0};
	int x,y;

	for(x=0;x<3;x++)
	{
		scanf("%d %d",&a[x],&b[x]);
		sum[x]=a[x]+b[x];
		printf("%d\n",sum[x]);
	}

	for(x=0;x<3;x++)
	{
		while(sum[x]!=0)
		{
			sum[x]=sum[x]/10;
			keta[x]++;
		}
		printf("%d\n",keta[x]);
	}

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="777";
	
	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<iostream>
#include<cmath>
using namespace std;

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

C++: #include<cstdio>
#include<cstdlib>
#include<iostream>
#include<math.h>

using namespace std;

int main()
{
	int a, b;
	
	cin >> a >> b;
	
	a = a + b;
	a = (int)log10(a);
	printf("%d\n",a+1);
	
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (scanf("%d %d", &a, &b)) {
        int sum = a + b;
        int cnt = 1;
        while (sum/10 != 0) {
            sum /= 10;
            cnt++;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

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

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

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

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

int log10(int);
int main()
{
	while(1){
	int a,b,i;
	cin >> a >> b;
	cout << log10(a+b) << endl;
	}
	return 0;
}
int log10(int x)
{
	int i = 1;
	while(1){
		if(x/10 >= 1){
			i++;
			x = x / 10;
		}else{
			break;
		}
	}
	return i;
}

C++: #include<iostream>                                              
#include<cmath>                                                 
using namespace std;                                            
                                                                
int main(void) {                                                
  int a,b;                                                      
  while (cin >> a >> b) {                                       
    a = log10(a+b)+1;                                           
    cout << a << endl;                                          
  }                                                             
  return 0;                                                     
}

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

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

  return 0;
}

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

int main() {

	int a, b, c;
	char e[100];

	while (cin >> a >> b) {

		c = sprintf_s(e, "%d", a+b);

		cout << c << endl;
	}

	return 0;
}

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

int main()
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=2,i=0;

	while( cin >> a[i] >> b[i]){
		i++;
	}

	for(i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		cout << cnt << endl;
		cnt=0;
	}

	return 0;
}

C++: #include <iostream>

int main(void){
while (!std::cin.eof()){
int a,b,c,i;
std::cin >> a >> b;
c=a+b;

while(!(c/=10))
i++;

std::cout << i << std::endl;
}