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<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){
  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

ofstream ofs("test.t");
ofs << "testetete" << endl;
  cerr << system("more test.t") << endl;


return 0;
}

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

#define pb push_back
#define fr first
#define sc second
typedef pair<int,int> pii;
typedef vector<int> vi;
const int INF = (1<<25);
const int dx[]={1,0,-1,0},dy[]={0,-1,0,1};

int main(){
  int a,b;
  while(scanf("%d %d",&a,&b) != EOF){
    int c=a+b;
    int cnt=0;
    while(c/10>0){
      c/=10;
      cnt++;
    }
    cout<< cnt+1<< endl;
  }
}

C++: #include <iostream>

using namespace std;

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

C++: #include <iostream>

using namespace std;

void digit(int);

int main() {

	int a, b;

	while(1) {
		cin >> a >> b;
		digit(a);
	}

	return 0;

}

void digit(int a) {
	
	int i=0;
	while(a!=0) {
		a/=10;
		i++;
	}

	cout << i << endl;

}

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(){
  int a,b;
  
  while(cin>>a>>b){
    a+=b;
    b=1;
    for(int i=1;i<=7;i++){
      b*=10;
      if(a<b){
	cout<<i<<endl;
	break;
      }
    }
  }
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  cin.tie(0);
  int a,b,ans;
  while(cin>>a>>b){
    ans=a+b;
    if(ans<=9){
      cout<<"1"<<endl;
    }else if(ans<=99){
      cout<<"2"<<endl;
    }else if(ans<=999){
      cout<<"3"<<endl;
    }else if(ans<=9999){
      cout<<"4"<<endl;
    }else if(ans<=99999){
      cout<<"5"<<endl;
    }else if(ans<=999999){
      cout<<"6"<<endl;
    }else if(ans<=9999999){
      cout<<"7"<<endl;
    }
  }
  return 0;
}

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

int main()
{
	int x, y;
	while (cin >> x >> y)
		cout << to_string(x).size() + to_string(y).size() << "\n";
	cout.flush();
}

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

int main(){
	int a, b, count = 1, total;

	while(cin >> a >> b){
		total = a + b;
		while(total/10 != 0){
			total /= 10;
			count++;
		}
		cout << count << endl;
		count = 1;
	}
}

C++: int toLowUnder10(int arg) {
	return (10 > arg) ? arg : (toLowUnder10(arg/10) + 1) ;
}

int main (int argc, char *argv[]) {
	int a,b;
	while (EOF != fscanf(stdin, "%d %d", &a, &b)) {
		printf("%d\n", toLowUnder10(a+b));
	}
	return 0;
}

C++: #include <iostream>

const int N = 200;
const int M = 10;

int main(void) {
  for (int i = 0; i < N; i++) {
    int a = 0;
    int b = 0;

    std::cin >> a;
    std::cin >> b;    

    int c = a + b;

    int count = 1;

    while (c >= M) {
      c /= M;
      count++;

      if (c < M) {
	break;
      }
    }

    std::cout << count << std::endl;
  }
   
  return 0;
}

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

using namespace std;

int main(){
    int a, b;
    float s;
    int d = 0;
    cin >> a >> b;
    s = a + b;
    do {
      s = s / 10.0;
      d++;
    } while(s >= 1.0);
    cout << d << endl;
    return 0;
}

C++: #include "bits/stdc++.h"
#include<unordered_map>
#include<unordered_set>
#pragma warning(disable:4996)
using namespace std;
using ld = long double;
template<class T>
using Table = vector<vector<T>>;
const ld eps=1e-9;

//// < "D:\D_Download\Visual Studio 2015\Projects\programing_contest_c++\Debug\a.txt"

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

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

int main(){

	int num[200][2];
	int count=0;

	while(cin >> num[count][0] >> num[count][1]){
		count++;
		if(count>199){
			break;
		}
	}

	int sum;

	for(int i=0;i<count;i++){
		sum=num[i][0]+num[i][1];
		int ans=0;

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

    return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,c;
    kuri :
    while ( cin >> a >> b){
        if(cin.eof()){break;}
        c = a+b;
        if (c/1000000>=1){
            cout << "6" << endl; goto kuri;
        }
        if (c/100000>=1){
            cout << "5" << endl; goto kuri;
        }
        if (c/10000>=1){
            cout << "4" << endl; goto kuri;
        }
        if (c/1000>=1){
            cout << "3" << endl; goto kuri;
        }
        if (c/100>=1){
            cout << "2" << endl; goto kuri;
        }
        if (c/10>=1){
            cout << "1" << endl; goto kuri;
        }
        else{
            cout << "0" << endl; goto kuri;
        }


    }
}

C++: #include <iostream>

int main(int argc, const char * argv[]) {
    
    using namespace std;
    int a;
    int b;
    int sum;
    int flag = 0;
    int count = 0;
    
    cin >> a >> b;
    
    sum = a + b;
    
    while (!flag) {
        sum = sum / 10;
        count++;
        if(sum < 1) flag = 1;
    }
    
    cout << count;
    
    return 0;
}

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

#include <string>
#include <sstream>

namespace patch
{
    template < typename T > std::string to_string( const T& n )
    {
        std::ostringstream stm ;
        stm << n ;
        return stm.str() ;
    }
}

#include <iostream>
int main(){
	int i,j;
	string s;
while(cin>>i>>j){
	cout<<patch::to_string(i+j).length()<<endl;
}
    return 0;
}

C++: #include<iostream>
using namespace std;
int num(int x){
  int r;
  while(x!=0){
  x= x/10;
    r++;
  }
  return r;
}
int main(){
  int a,b;
  cin>>a>>b;
   a+=b;
   cout<<num(a)<<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){
			printf("6\n");
		}else if(a + b < 100000){
			printf("5\n");
		}else if (a + b < 10000){
			printf("4\n");
		}else if (a + b < 1000){
			printf("3\n");
		}else if (a + b < 100){
			printf("2\n"); 
		}else if (a + b < 10){
			printf("1\n",x);
		}
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a,b;
  int k=0;
  int s=0;
  int i;
  int ke[999]={0};
  while(cin>>a>>b){
  s=a+b;
  while(s>=1){
    s=s/10;
    ke[k]++;
  }
  k++;
}
  for(i=0;i<=k;i++){
  cout<<ke[i]+1<<endl;
}
  return 0;
}