Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

C++: #include <iostream>

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

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;
  }

  ofstream ofs("out2.txt");
  for(int i=0;i<=10000;i++){
    ofs << string(200000,'?') << endl;
  }

return 0;
}

C++: #include <iostream>
using namespace std;
int main( void )
{
	while (1)
	{
		int a, b;

		if ( cin.eof() )
			break;

		cin >> a >> b;
		int sum = a + b;

		int cnt = 0;
		while ( sum >= 10 )
		{
			sum /= 10;
			cnt++;
		}
		
		int kotae = cnt + 1;
		cout << kotae << endl;

	}
	return 0;
}

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

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

using namespace std;

void solver() {
    int a,b;
    while(cin>>a>>b){
        cout<<a+b<<endl;
    }
}

int main() {
    solver();
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char const* argv[])
{
	int a,b,c;

	cin >> a >> b;

	int i;
	c = a + b;
	for( i = 0;(c /= 10) != 0;i++ );

	cout << ++i << endl;
	return 0;
}

C++: /* AOJ0002 */
#include<iostream>
#include<algorithm>
#include<vector>
using namespace std;

int main(){
  int a, b, sum;
  while(cin >> a >> b){
    sum = a + b;
    switch(sum){
    case 0 ... 9:
      cout << 1 << endl;
      break;
    case 10 ... 99:
      cout << 2 << endl;
      break;
    case 100 ... 999:
      cout << 3 << endl;
      break;
    case 1000 ... 9999:
      cout << 4 << endl;
      break;
    case 10000 ... 99999:
      cout << 5 << endl;
      break;
    case 100000 ... 999999:
      cout << 6 << endl;
      break;
    default:
      cout << 7 << endl;
    }
  }
  return 0;
}

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

int main(){
        int a, b;
        while(scanf("%d %d", &a, &b)){
                double temp = log10(a + b) + 1 ;
                cout << floor(temp) << endl;
        }
        return 0;
}

C++: #include <iostream>
#include <cmath>
 
using namespace std;
 
int main(){
  int a,b,sum;
  
  while(cin >> a >> b){
    
    sum = log10(a+b) + 1;
      
    cout << sum << endl;
  }

}

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


int main(){

int i,d,n1,n2,sum,c;

int a,b;

while(cin >> n1 >> n2){
    if(n1 == -1 or n2 == -1)  break;
   while(n1 < 0 or n1 > 1000000 or n2 < 0 or n2 > 1000000){
      cin >> n1 >> n2;
   }
   if(n1 >= 0 and n1 <= 1000000 and n2 >= 0 and n2 <= 1000000){
       a=n1;
       b=n2;
       c=0;
       sum=a+b;
       while((sum/10)!=0){
           c++;
           sum=sum/10;
        }
       cout << c+1 << "\n";
   }
}
return 0;
}

C++: #include<stdio.h>
int main(void) {
	int a, b, d = 1,l=0;
	while (l<200)
	{
		scanf("%d %d", &a, &b);
		for (size_t i = 10; ; i *= 10)
		{
			if ((a + b) / i == 0)break;
			d++;
		}
		printf("%d\n", d);
		a = 0; b = 0; d = 1;
		l++
	}
	return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>

using namespace std;

int main()
{
	char buf[2000];
	int a,b,c;

	while(fgets(buf,sizeof(buf),stdin)!=NULL){
		c=1;
		a=atoi(strtok(buf," ")); b=atoi(strtok(NULL,"\n"));
		a+=b; while(a/=10) c++;

		cout<<c<<endl;

	}

}

C++: //
//  main.cpp
//  AizuOnlineJudge
//
//  Created by TomoyaYamaguchi on 2016/08/05.
//  Copyright ?? 2016??´ TomoyaYamaguchi. All rights reserved.
//

#include <iostream>

using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    int a=0;
    int b=0;
    int hoge = 0;
    int count = 0;
    
    
    do{
    
        cin >> a >> b;
        
        if(a == 0 && b == 00){
            break;
        }
    
        hoge = a + b;
    
        while((hoge/=10) != 0){
            count++;
        }
    
        cout << count + 1 << endl;
        count = 0;
    }while(a!=0 && b!=0);
    
    
    return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int a1[200],b[200],f=3,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("0\n");
				break;
			}
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

using namespace std;

int main(void) {
	int a,b,sum;
	
	while(scanf("%d%d",&a,&b)!=EOF){
		int ans;
		ans = (int)log10((double)(a+b))+1;
		printf("%d\n",ans);
	}
	
	return 0;
}

C++: #include <cstdio>

int inline length(int x){
	int result = 0;
	do{
		result++;
		x /= 10;
	}
	while (x > 0);
	return result;
}

int main(){
	int a, b;
	
	while (scanf("%d %d", &a, &b) != EOF){
		printf("%d\n", length(a + b));
	}
	
	return 0;
}

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

using namespace std;

#define Vi vector<int>
#define FOR(i,s,e) for (int i=s; i<e; i++)
#define ITER(v) v.begin(), v.end()

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int64_t a, b;
    int n;

    while (true) {
        cin >> a >> b;
        if (cin.eof()) { break; }
        int64_t sum = a + b;
        int count = 1;
        while (sum >= 10) {
            sum /= 10;
            count++;
        }
        cout << count << endl;
    }

    return 0;
}

C++: def digit n
 i = 0
 while n>0
  n = n/10
  i +=1
 end
 i
end

while n = gets
 a,b = n.chomp.split
 a,b = a.to_i,b.to_i
 
 puts digit a+b
end

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		n = -1;
		cin >> n >> m;
		if (n == -1) break;
		sum = n + m;
		//cout << sum << endl;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

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

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;
#include <stdio.h>
int main(){
  int a, b;

  while(scanf("%d %d", &a, &b ) != EOF){
    int c = a + b;
    int n = 1;
    while(1){
      if(c / 10 == 0) break;
      n++;
    }
    printf("%d\n", n);
    // cout << n << endl;
  }

  return 0;
}