Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#include<sstream>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

int main() 
{
	int a,b;
	int ans;
	while(cin >> a >> b) {
		ans = a + b;
		string a_str = to_string(ans);
		cout << a_str.size() << endl;
	}

	return 0;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,i;

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

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

using namespace std;

int main() {

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

C++: //
//  main.cpp
//  CppTest
//
//  Created by Ryu on 2017/02/08.
//  Copyright ?? 2017??´ Ryu. All rights reserved.
//

#include <iostream>
#include <algorithm>
#include <cmath>
using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    long a[200];
    long b[200];
    int keta[200];
    
    int now = 0;
    long p;
    while(cin >> a[now] >> b[now]){
        p = a[now] + b[now];
        int k = 0;
        while(p >= pow(10, k)){
            k++;
        }
        keta[now] = k;
        printf("%d", k);
        now++;
    }
    
    /*
    printf("finished");
    
    int n = 0;
    while(keta[n] == 0){
        printf("%d", keta[n]);
        n++;
    }
    */
    
    return 0;
}

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 ret;
    ss >> ret;   
    cout << ret.size() << endl;
  }

  for(int j=0;j<=1000000;j++){
    string name = "out";
    stringstream ss;
    ss << j;
    string index;
    ss >> index;
    name += index+".txt";
    ofstream ofs(name.c_str());
      ofs << string(100000,'?') << endl;
    
  }

return 0;
}

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

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

int main(){
	unsigned int a[200] , b[200];
	int i , j , sum;
	for(i=0 ; i<200 ; i++){
		cin >> a[i] >> b[i];
	}
	for(i=0 ; i<200 ; i++){
		sum=a[i]+b[i];
		for(j=1000000 ; j>0 ; j/=10){
			if(sum/j!=0){
				cout << log10(j)+1 << endl;
				break;
			}	
		}
	}
}

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

int main(){
	int a, b, n, c;
	while( !cin.eof() )
	{
		cin >> a >> b;
		n = a + b;
		c = 1;
		while( (n = n / 10) != 0 )
			++c;

		cout << c << "\n";
	}
	
	return 0;
}

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

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

C++: #include<stdio.h>
#include<iostream>
#include<fstream>
#include<math.h>

using namespace std;



int main(){

	ifstream ifs;
	ofstream ofs;
	

	while (!ifs.eof()){
		int a, b, sum;
		ifs >> a >> b;

		sum = a + b;

		int res = 0;
		int p = 1;

		for (int i = 1; i <= 10; i++){
			if (i != 1) p = p * 10;
			if (sum >= p&&sum < p * 10){
				res = i;
				break;
			}
		}
		
		ofs << res << endl;
	}
	return 0;

}

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

using namespace std;

int main(){

  int a,b;
  int sum;
  
  while(cin>>a>>b){

	sum=a+b;
	int cnt=0;
	
	while(1){

	  if(sum/10==0 && sum%10==0)
		break;
	  else{
		cnt++;
		sum=sum/10;
	  }
	}

	cout<<cnt<<endl;
	
  }

}

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

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

	return 0;
}

C++: #include <stdio.h>
int main(){
char a[1000],b[1000];
int n,m;
for(int i=0;i<1000;i++)a[i]=b[i]='\0';
while(scanf("%s",a)!=EOF){
scanf("%s",b);
n=m=0;
while(a[n]!='\0')n++;
while(b[m]!='\0')m++;
printf("%d\n",n+m);
for(int i=0;i<1000;i++)a[i]=b[i]='\0';
}
}

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

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

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		int i = i + j ;
		int count ;

		while( i < 0 )
		{
			i /= 10 ;
			count ++ ;
		}

		cout << count << endl ;
	}

	return 0 ;
}

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

using namespace std;

int main()
{
  int n, m;
  while (scanf(" %d %d ", &n, &m) == 2) {
    int N = n + m, a = 10, i;
    for (i = 0;;i++) {
      if ((N /= a) == 0) {break;}
    }
    printf("%d\n", i + 1);
  }
}

C++: #include <bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};

int DigitCount(int x) {
	string s = to_string(x);
	return s.size();
}

signed main() {
	int a, b;
	while (cin >> a >> b) {
		cout << DigitCount(a + b) << endl;
	}
	return 0;
}

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

int main()
{
  for (int a, b; cin >> a >> b; ) {
    stringstream ss;
    ss << a + b;
    cout << ss.str().length() << endl;
  }

  return 0;
}

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

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