Go: // 九九を出すだけ
package main
import (
	"fmt"
	"os"
	"bufio"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main(){
	sc.Split(bufio.ScanWords)
	defer out.Flush()
	for sc.Scan(){
	    s := nextIntIs()
	    sc.Scan()
	    t := nextIntIs()
        a := len(strconv.Itoa(s+t))
	    fmt.Fprintln(out, a)
	}
}

func next() string{
	sc.Scan()
	return sc.Text()
}

func nextInt() int{
	a, _ := strconv.Atoi(next())
	return a
}

func nextIntIs() int{
	a, _ := strconv.Atoi(sc.Text())
	return a
}

C++: #include<stdio.h>

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

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

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

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

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

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

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

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

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

C++: #include <cstdio>
int main(){
 int d,n,a,b,; 
 while(true){
  d=0;
  if (scanf("%d %d",&a,&b)==0) break;
  n=a+b;
  while(n>0) { d++, n/=10 };
  printf("%d\n",d);
  return 0;
};

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

C++: #include <iostream>

int main(){
	int a, b ,i ,n ;
	while(std::cin>>a>>b){
	i=1;
	for(n=1;a+b>=i*10;n++){
	if(a+b>=i*10){
	i=i*10;
	}
	}
	std::cout<<n<<std::endl;
}
return 0;
}

C++: #include<stdioi.h>
int main(void)
{
	int a,b,i,sum;
	
	while(scanf("%d %d",&a,&b)!=EOF) {
		sum=a+b;

		i=0;
		while(sum>0)	{
			sum=sum/10;
			i++;
		}
		printf("%d\n",i);
	}
	return 0;
}

C++: include <cstdio>
#include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	while(a != EOF) {
		cin >> a >> b;
		a += b;
		a = (int)log10((double)a) + 1;

		cout << a << endl;
	}
	return 0;
}

C++: #include<stdio.h>

main(void){
    int i, n;
    
    scanf("%d", &n);
    int num[n][4];
    
    for( i = 0; i < n; i++){
        scanf("%d %d %d", &num[i][0], &num[i][1], &num[i][2]);
        if((num[i][2]*num[i][2]==num[i][0]*num[i][0]+num[i][1]*num[i][1])||(num[i][0]*num[i][0]==num[i][1]*num[i][1]+num[i][2]*num[i][2])||(num[i][1]*num[i][1]==num[i][0]*num[i][0]+num[i][2]*num[i][2])){
            num[i][3] = 1;
        }else{
            num[i][3] = 0;
        }
    }
    
    for( i = 0; i < n; i++){
        switch (num[i][3]){
            case 0:
            printf("NO\n");
            break;
            case 1:
            printf("YES\n");
            break;
        }
    }

    return 0;
}

C++: #include <stdio.h>

int main(void){
	int a,b;
	int sum;
	int loop_i,loop_j;
	int cnt=0;

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

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

int main(){
    long long a,b;
    cin >> a >> b;
    long long sum = a + b;
    string str = to_string(sum);
    cout << str.length()<<endl;
}

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

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

int main() {
    int a, b, sum;
    while (cin >> a >> b) {
        int divisor = 10, digit = 1;
        sum = a + b;

        do {
            if ((sum / divisor) != 0) {
                digit++;
                divisor *= 10;
            }
            else if ((sum / divisor) == 0)
                break;
        } while (1);

        cout << digit << endl;
    }
    return 0;
}

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

C++: #include<iostream>
using namespace std;
int main(){
	int a[2];
	cin>>a[0];
	cin>>a[1];
	int sum=a[0]+a[1];
	int  i=0;
	while(1){
		i++;
	if(sum>=0&&9>=sum)break;
	sum/=10;
	}
	cout<< i<<endl;
	return 0;
}

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

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

auto main() -> int {
    int a, b;
    char str[100];
    while (std::cin >> a >> b) {
        std::sprintf(str, "%d", a+b);
        std::cout << strlen(str) << std::endl;
    }
}

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

using namespace std;

unsigned short digitsofnum(unsigned short n) {
	int j = 0;
	while (n > 0) {
		n = n / 10;
		j++;
	}
	return j;
}

int main()
{
	unsigned short a, b;
	vector<unsigned short> dst;
	while (cin >> a >> b)
		dst.push_back(digitsofnum(a + b));
	for (vector<unsigned short>::iterator it = dst.begin(); it < dst.end(); it++)
		cout << *it << endl;
	return 0;
}

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

using namespace std;
int data[10];

int main(){

int a,b;

while(cin>>a>>b){
int ans=log10(a+b)+1;

cout<<ans<<endl;

}

}

C++: #include <stdio.h>

int main(void)
{
	int a, b;
	int add;
	int count;

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

		add = a + b;
	
		count = 0;
	
		while (add){
			add /= 10;

			count++;
		}

	printf("%d\n", count);
	}

	return (0);
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,c;
    
    while(cin >> a >> b){
        int ans = 0;
        for(c = a + b;c!=0;ans++,c/=10);

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

C++: #include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
#define MOD (1000000007)
#define INF (1e9)
#define INFL (1e18)
 
typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
template<class T>using arr=vector<vector<T>>;
template<class T>void pr(T x){cout << x << endl;}
template<class T>void prvec(vector<T>& a){rep(i, a.size()-1){cout << a[i] << " ";} cout << a[a.size()-1] << 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 main()
{
    int a, b;
    while(cin >> a >> b){
        int c = a + b;
        int ans = 0;
        while(c>0){
            ans++;
            c /= 10;
        }
        pr(ans);
    }
    return 0;}