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++: //
//  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;
        now++;
        if( !cin.peek() ){
            break;
        }
    }
    
    
    //printf("finished");
    
    for (int i = 0; i < now; i++) {
        printf("%d\n", keta[i]);
    }
    
    
    return 0;
}

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

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

C++: #include<cstdio>
#include <vector>
#include <algorithm>
#include <functional>
using namespace std;

int main(){
	std::vector<int> r;
	while(true) {
		int nums[2];
		for(int i=0; i<2; ++i){
			scanf("%d", &nums[i]);
		}

		r.push_back(nums[0]+nums[1]);
	}

for(int &i : r) {
	printf("%d\n", i);
}
	

	return 0;
}

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

int digit_num(int num){
  int ret = 1;
  int base = 10;
  int rest = num / base;
  
  while(rest != 0){
    ret++;
    rest /= base;
  }
  
  return ret;
}

int main(){
  vector<int> ans;
  
  while(!cin.eof()){
    int a, b;
    cin >> a;
    cin >> b;

    int c = a + b;
    ans.push_back(digit_num(c));
  }

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

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

int main(){
	int a, b, sum, d = 1;
	while(cin >> a >> b){
		while(!(((a >= 0)&&(a <= 1000000))&&((b >= 0)&&(b <= 1000000)))){
			cout << "wrong value\n";
			cin >> a >> b;
		}
		sum = a + b;
		while((sum / 10) != 0){
			d++;
			sum /= 10;
		}
		cout << d << "\n";
		d = 1;
	}
    return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776756";
	
	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<iostream>

int digit(int a, int b){
  int digit=0;
  int c=a+b;
  
  if(c == 0){
    return 1;
  }
  else {
    while(c != 0){
      c /= 10;
      digit++;
    }
    return digit;
  }
}

int main(){
  int sum[200];
  int a, b; //2????????´??°
  int count=0; //????????????
    
  //std::cout << "Input two of numbers\n";
  
  while(std::cin >> a >> b){
    if(a == -1 && b== -1)
      break;
    
    sum[count]=digit(a,b);
    count++;
  }

  for(int i=0; i<count; i++){
    std::cout << sum[i] << '\n';
  }

  return 0;
}

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

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

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

using namespace std;

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

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


int judge(int n){
	if (n / 1000000 != 0) return 7;
	if (n / 100000 != 0) return 6;
	if (n / 10000 != 0) return 5;
	if (n / 1000 != 0) return 4;
	if (n / 100 != 0) return 3;
	if (n / 10 != 0) return 2;
	if (n / 1 != 0) return 1;
	return 0;
}


int main(){
	int a, b;
	while (cin >> a >> b)
	{
		int n = a + b;
		cout << judge(n) << endl;
	}

	return 0;
}

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

using namespace std;


int main() {
    int a, b;

    while(cin >> a) {
        cin >> b;
        stringstream ss;
        ss << (a + b);
        cout << ss.str().size() << endl;
    }
    return 0;
}

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

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

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

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

int main()
{
	int a, b, sum, ans;
	sum = a + b;
	ans = (int)log10 ((double)sum)+ 1;
	cout << ans << 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>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	a = (int)log10((double)a) + 1;
	b = (int)log10((double)b) + 1;

	cout << a + b << endl;

	return 0;
}

C++: #include <vector>

#ifndef EOF
#define EOF (-1)
#endif

int main() {
    std::vector<int> digits;
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF)
    {
        int sum = a + b;
        int t = sum / 10;
        int digit = 0;
        while (t > 0) {
            digit ++;
            t = t / 10;
        }
        digits.push_back(digit);
    }

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

    return 0;
}

C++: #include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main() {
  int a, b, cnt;
  string s;
  getline(cin, s, ' ');
  a = stoi(s);
  getline(cin, s);
  b = stoi(s);
  a += b;
  cnt = 0;
  if (a == 0) {
    cnt = 1;
  } else {
    while (a) {
      cnt++;
      a /= 10;
    }
  }
  cout << cnt << endl;
}

C++: #define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

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

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

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    int i,j, a,b,count=0,sum,val,k;
    while(scanf("%d%d",&a,&b)!=EOF)
    {
        sum=a+b;
        while(sum!=0)
        {
            count++;
            sum/=10;
        }
        cout<<count<<endl;
        count=0;
    }
}

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

int main()
{
	int a, b, digit;
	while (cin >> a >> b) {
		digit = log10(a + b) + 1;
		cout << digit << "\n";
	}
	return 0;
}

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

int main()
{
	int a,b,c;
	cin >>a >>b;
	c = a+b;
	int ret = 1;
	for(int i=1;;i++){
		if( c/pow(10,i) >=1 ){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
    
	return 0;
}