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<iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<sstream>
#include<algorithm>
#include<map>
#include<complex>
using namespace std;


#define li			long long int
#define rep(i,to)	for(int i=0;i<((int)(to));i++)
#define repp(i,start,to)	for(int i=(int)(start);i<((int)(to));i++)
#define pb			push_back
#define sz(v)		((li)(v).size())
#define bgn(v)		((v).begin())
#define eend(v)		((v).end())
#define allof(v)	(v).begin(), (v).end()
#define dodp(v,n)		memset(v,(li)n,sizeof(v))
#define bit(n)		(1ll<<(li)(n))
#define mp(a,b)		make_pair(a,b)
#define rin	rep(i,n)
#define EPS 1e-10
#define ETOL 1e-8
#define MOD 1000000007
#define p2(a,b)		cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)		cout<<a<<"\t"<<b<<"\t"<<c<<endl


int main(){
	li a,b;
	string s;
	while(cin>>a>>b){
		stringstream ss;
		ss<<(li)(a+b);
		ss>>s;
		//cout<<s<<endl;
		cout<<sz(s)<<endl;
	}
	
	return 0;
}

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

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

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

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

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

using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define REP(i,j,n) for(int i = j; i < n; i++)


int main(){

	int a,b;
	int sum = 0;
	cin >> a >> b;

	sum = a + b;
	
	int x = 1;

	while(sum / 10 > 0){
		x++;
		sum = sum / 10;
	}

	cout << x << endl;

	return 0;
}

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

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

C++: #include <iostream>

int main()
{
	int a, b;
	while(std::cin>>a>>b)
	{
		int c = a+b;
		int d=0;
		if(c==0)
			d=1;
		else
		while(c>0)
			d++,
			c/=10;
		std::cout <<d <<std::endl;
	}
	return 0;
}

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


string toString(long long n){
  stringstream ss;
  ss << n;
  return ss.str();
}
int main(){
  long long  a, b;
  while( cin >> a >> b ){
    cout << toString(a + b).size() << endl;
  }

}

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

#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)

int main(int argc, char *argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int a, b;

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

    return 0;
}

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

long int a,b,ans,sum;
int main()
{

    while(scanf("%ld%ld",&a,&b)!=EOF)
    {
        ans=0;
        sum=a+b;
        while(1){

        if(sum<10)
        {
            ans=ans+1;
            break;
        }
        ans=ans+1;
        sum=sum/10;
        }
        printf("%ld\n",ans);
    }
}

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

using namespace std;

int main(void){

 int a,b;
 int ans;

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

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

int main() {
	int a, b;
	while (cin >> a >> b) {
		int n = a + b;
		int c = 1;
		while (n) {
			int x = n / 10;
			n /= 10;
			if (x) {
				c++;
			}
		}

		cout << c << endl;
	}
}

C++: int a;
  int b;
  int ans;
  while(cin >> a >> b){
    ans = a + b;
    if(ans>=0 && ans<=99){
      cout << "2" <<endl;
    }
    else if(ans>=100 && ans<=999){
      cout << "3" <<endl;
    }
    else if(ans>=1000 && ans<=1999){
      cout << "4" <<endl;
    }
  }
  return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int a1[200],b[200],f,i=0,a,g,k=0;
	while(cin>>f){
		scanf("%d %d",&a1[i],&b[i]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=a1[j]+b[j];
		for(g=0;;g++){
			if(a==0&&g==0){
				printf("%d\n",a);
				break;
			}
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

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

int main(){
  int count=0,digit,a,b;

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

C++: #include<iostream>

using namespace std;

int main(){

	int  a, b,c, counter= 1, sum=1;

	while(cin >> a>>b){ 

		while(a/10!=0){
			a=a/10;
			counter++;
		}
		while(b/10!=0){
			b=b/10;
			sum++;
		}
		
		cout<<counter+sum<<endl;

		counter=1;
		sum=1;
		

	}

}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7761";
	
	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(){
	
	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 <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<ll, ll> P;

#define EACH(i,a) for (auto& i : a)
#define FOR(i,a,b) for (ll i=(a);i<(b);i++)
#define RFOR(i,a,b) for (ll i=(b)-1;i>=(a);i--)
#define REP(i,n) for (ll i=0;i<(n);i++)
#define RREP(i,n) for (ll i=(n)-1;i>=0;i--)
#define debug(x) cout<<#x<<": "<<x<<endl
#define pb push_back
#define ALL(a) (a).begin(),(a).end()

const ll linf = 1e18;
const int inf = 1e9;
const double eps = 1e-12;
const double pi = acos(-1);

template<typename T>
istream& operator>>(istream& is, vector<T>& vec) {
	EACH(x,vec) is >> x;
	return is;
}
template<typename T>
ostream& operator<<(ostream& os, vector<T>& vec) {
	REP(i,vec.size()) {
		if (i) os << " ";
		os << vec[i];
	}
	return os;
}
template<typename T>
ostream& operator<<(ostream& os, vector< vector<T> >& vec) {
	REP(i,vec.size()) {
		if (i) os << endl;
		os << vec[i];
	}
	return os;
}

string f(ll n) {
	stringstream ss; ss << n;
	string res; ss >> res;
	return res;
}

int main() {
	std::ios::sync_with_stdio(false);
	std::cin.tie(0);
	ll a, b;
	while (cin >> a >> b) {
		ll c = a + b;
		cout << f(c).size() << endl;
	}
}

C++: #include <iostream>
//#include <iomanip>
//#include <vector>
//#include <string>
#include <algorithm>
#include <functional>

using namespace std;

int main(){

	int a, b, c, ans ;


	while (1){
		ans = 1;

		if(!(cin >> a)) break;
		cin >> b;

		c = a + b;

		while (c /= 10){
			ans++;
		}
		cout << ans << endl;
	}


	return 0;
}

C++: #define _USE_MATH_DEFINES
#include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include <string.h>
#include <stack>
#include <algorithm>
#include <stdio.h>
#include <functional>
using namespace std;

//??°?????????????????°

void function()
{
    //??¢??°
}
 
int main(){
	int a, b;
	while(cin >> a >> b){
		int sum = a + b;
		int cnt = 1;
		while(true){
			sum /= 10;
			if(sum == 0){
				break;
			}
			cnt++;
		}
		cout << cnt << endl;
	}
    return 0;
}