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++: 
//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp

#include <algorithm>
#include <iostream>
#include <vector>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

using namespace std;

//テ」ツδ榲」ツつッテ」ツδュテ・ツョツ堙ァツセツゥ
#define ALL(v) (v).begin(),(v).end()
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
#define REP(i,a,b) for(int i=(int)(a); i<(int)(b); ++i)
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define SORT(x) sort(begin(x),end(x))
#define SELECT_SORT(x, n) sort(begin(x),begin(x)+n)
#define SWAP(type, a, b) do {type tmp = a; a = b; b = tmp;} while (0)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))

//テ・ツョツ堙ヲツ閉ー
#define INF 2000000000000
#define MAX 10

//DEBUGテァツ板ィ
#define BAR() cout << "----------------------------" << endl;
#define DUMP(v) (cerr << #v << ": " << v << endl)
#define PRINT(list) cout << "{ "; for(auto nth : list){ cout << nth << " "; } cout << "}" << endl;


int main()
{
	int a=0;
	int b=0;
	while(cin >> a >> b)
	{
		int total = a + b;
		
		int i;
		if(total == 0){
			cout << i << endl;
		}else{
			for(i = 0; total != 0; i++){ total /= 10; }
			cout << i << endl;
		}
	}
	
}

C++: #include <iostream>

using namespace std;

int main()
{
	int a, b;

	while (cin >> a >> b) {
		int sum = a + b;
		int n;
		for (n = 0; sum > 0; n++) {
			sum /= 10;
		}
		cout << n << endl;
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	while (true)
	{
		int a, b;
		cin >> a >> b;
		if (cin.fail())
			break;
		int cnt = 0;
		int x = a + b;
		do {
			x /= 10;
			cnt++;
		} while (x);
		cout << cnt << endl;
	}
}

C++: #include <iostream>
using namespace std;
int main( void )
{
  int x,y,z;
  while( 1 ){
    cin >> x >> y;
    if( cin.eof() ) break;
    x += y;
    z = 0;
    if( x == 0 ) z = 1;
    while( x > 0 ){
      z++;
      x /= 10;
    }
    cout << z << endl;
  }
  return 0;
}

C++: #include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	long long int a = 0;
	long long int b = 0;
	while (cin >> a, cin >> b)
	{
		long long int c = a + b;
		int d = 1;
		while (c >= 10)
		{
			c /= 10;
			d++;
		}
		cout << d << endl;
	}
	
	return 0;
}

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

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

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

using namespace std;

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

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

string sum(string s, string t){
    reverse(s.begin(), s.end());
    reverse(t.begin(), t.end());
    
    string res;
    int carry = 0;
    int md = max(t.size(), s.size());
    for(int i=0; i<=md; i++){
        int sc = i<s.size()? s[i]-'0': 0;
        int tc = i<t.size()? t[i]-'0': 0;
        int d = sc + tc + carry;
        char nd = '0' + (d%10);
        if(i == md && nd == '0')
            continue;
        res += nd;
        carry = d/10;
    }
    reverse(res.begin(), res.end());
    return res;
}

int main(){
    string s, t;
    while(cin >> s >> t){
        cout << sum(s, t).size() << endl;
    }
    return 0;
}

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

using namespace std;

int main(void) {
	int n, m, sum;
	vector<int> v;

	while (cin >> n >> m){
		int digit = 1;
		sum = n + m;
		while (sum /= 10) {
			digit++;
		}
		v.push_back(digit);
	}

	for (int i = 0; i < v.size(); i++) {
		cout << v[i] << endl;
	}

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  while(cin>>a>>b){
    int n =a+b;
    int cnt=0;
    while(n){
      n/=10;
      cnt++;
    }
    cout<<cnt<<endl;
  }
  return 0;
}

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

}
return 0;
}

C++: //============================================================================
// Name        : 0002.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
using namespace std;

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

C++: #include <stdio.h>

int main(){

	int a=0,b=0,x=0;

	while (scanf("%d%d", &a, &b)!=EOF){
		
		if (a + b < 1000000){
			x=6;
		}else if(a + b < 100000){
			x=5;
		}else if (a + b < 10000){
			x=4;
		}else if (a + b < 1000){
			x=3;
		}else if (a + b < 100){
			x=2; 
		}else(a + b < 10){
			x=1;
		}printf("%d\n", x);
	}
	return 0;
}

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


int main(){
    long a, b, sum,r,count=0;

    while(scanf("%d %d",&a,&b)!=EOF){
        sum=a+b;
        //printf("%d\n",sum);

        while(sum){
            r=sum%10;
            count++;
            sum=sum/10;
        }
        printf("%d\n",count);
    }



return 0;
}

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

int main(){

	int a[100];
	int b[100];
	int i = 0;
	int N;

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

		if (a[i]==EOF) break;
		i++;
	}
	N = i;
	i = 0;
	
	int j=1;
	int ans=0;

	for(i;i<=N;i++){
		while(1){
			if((((a[i]+b[i]) / j))!=0){
				ans++;
			}
			else break;

			j = j * 10;
		}
		cout << ans << endl;
		ans = 0;
		j = 1;
	}

}

C++: #include<iostream>

using namespace std;

 int main(){
  int a,b,sum,count;
  
  while(cin >> a >> b){
  
   sum = a + b;
   count = 0;
   
   for(int i = sum; i >= 1; i/10){
    count++;
   }
    
   cout << count << endl;
    
  }
  
 return 0;
}

C++: #include	<iostream>

using namespace std;

int main(void) {
	while(1) {
		int a, b;
		int sum = 0, g = 1;
		
		cin >> a;
		if( cin.eof() )	{ break; }
		
		cin >> b;
		sum += a + b;
		
		while(sum >= 10) {
			g++;
			sum /= 10;
		}
		cout << g << endl;
	}
	
	return 0;
}

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>
using namespace std;

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

C++: #include<cstdio>
using namespace std;
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)!=EOF){
int x=a+b;
for(int i=0;i<8;i++){
if(x<(1ei) printf("%d\n",i);
}
}
return 0;
}

C++: #include <cstdio>
using namespace std;
int a,b,s;
int p,cnt,ans;
int scan(){
  if(scanf("%d %d",&a,&b)==EOF) return 0;
  return s=a+b;
}
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(1){
    cnt=1;
    ans=count(scan());
    printf("%d\n",ans);
  }
}

C++: #include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int b[2];
	int count;

	for(i = 0; i < 2; i++){
		scanf("%d", &a[i]);
	}
	i = a[0] + a[1];
		count = 0;
		do{
			count++;
		}while((i = i/10) > 0);

		b[0] = count;

	printf("%d\n", b[0]);
	
	return 0;
	
}