Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

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

int main(){
  int a,b;
  while(cin>>a>>b){
    int sum=a+b;
    int count=0;
    do{
      count++;
      sum*=0.1;
    }while(sum!=0);
      cout<<count<<endl;
  }
  return 0;
}

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

using namespace std;

int main() {
	long a, b;
	string sum;
	
	while (scanf("%ld %ld", &a, &b) != EOF) {
	    sum = to_string(a + b);
	    
	    printf("%d\n", sum.size());
	}
	
	return 0;
}

C++: #include<stdio.h>
int main(){
  int a,b,c;
  while(scanf("%d %d",&a,&b)!=EOF){
  	c = a + b;
  	if(c<10) printf("1\n");
  	else if(c<10^2) printf("2\n");
  	else if(c<10^3) printf("3\n");
  	else if(c<10^4) printf("4\n");
  	else if(c<10^5) printf("5\n");
  	else if(c<10^6) printf("6\n");
  	else if(c<10^7) printf("7\n");
  }
  return 0;
}

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

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

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

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

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

	cin >> a >> b;
	sum = a + b;
	
	while(sum > 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;

	cin >> a;

	return 0;
}

C++: #include <iostream>

int digits(int num);

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

    int a, b;
    while (std::cin >> a >> b)
        std::cout << digits(a + b) << std::endl;
}

int digits(int num)
{
    int cnt = 0;
    do {
        num /= 10;
        ++cnt;
    } while(num != 0);

    return cnt;
}

C++: #include <bits/stdc++.h>
#include <stdlib.h>
#define INF 114514810
#define FOR(i, r, n) for(int i=(r); i<(n); i++) 
#define REP(i, n) FOR(i, (0), n)
template<typename T>
void remove(std::vector<T>& vector, unsigned int index)
{
	vector.erase(vector.begin() + index);
}

using namespace std;

int n=1, a, b;

int main(){
	while (cin >> a >> b){
		a += b;
		while (a > 1)
		{
			a /= 10;
			n++;
		}
		cout << n << endl;
		n = 1;
	}
}

C++: #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cassert>
#include <vector>
#include <string>
#include <cmath>
#include <map> 
#include <sstream>
#include <cstdio>
#include <complex>
#include <cstring>
using namespace std;
 
const int MAX= 10000100;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()
#define ll long long int
#define gcd(a,b) __gcd(a,b)
#define pb(a) push_back(a)
int GCD(int a, int b) {if(!b) return a; return gcd(b, a%b);}
int lcm(int a, int b) {return a*b / gcd(a, b);}

int main(void){
  int a,b;
  while(cin>>a>>b){
  int cnt = 1;
  a += b;
  
  while(a/=10)cnt++;
  cout<<cnt<<endl;
}
}

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

#define ALL(a) a.begin(),a.end()

using namespace std;

int main()
{
  unsigned a = 1, b;

  while ( cin >> a >> b ) {
    int c = 1, n = a + b;
    if ( n == 0 ) {
      cout << 0 << endl;
      continue;
    }
    while ( n /= 10 )
      c++;
    cout << c << endl;
  }

  return 0;
}

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

int main(void){
  int a,b;
  cin >> a >> b;

  while(!cin.eof()){
    int m = a+b;
    int i;
    for(i=0;m!=0;i++){
      m /= 10;
    }
    cout << i << endl;
    cin >> a >> b;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main ( void )
{
  int a, b;
  while (cin >> a >> b)
  {
    int c = a + b, digit = 0;

    do
    {
      c /= 10;
      ++digit;
    } while (c);

    cout << digit << endl;
  }
  return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<cstdio>

int digit(int v){
	int cnt = 1;
	while ((v /= 10) != 0)
		cnt++;
	return cnt;
}

int main(){
	int a, b;
	scanf("%d%d", &a, &b);
	printf("%d\n", digit(a+b));
	return 0;
}

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

}

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

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



int dy[] = { 0, 0, 1, -1, 0 };
int dx[] = { 1, -1, 0, 0, 0 };

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = {-2};

void input() {
	int i = 0;

	

	return;
}


int main(void) {
	input();
	int i = 0;
	int sum = 0;
	int numb = 0;
	int a = 0;
	int b = 0;

	while ((scanf("%d%d",&a,&b)) != EOF) {
		sum = a + b;
		while (sum != 0) {
			numb++;
			sum /= 10;
		}
		CO numb E
		numb = 0;
	}



	return 0;
}

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

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

C++: #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
int main(){
	int a,b;
	int sum=0;
	int count=0;
	vector<int> digits;
	for(int i=0;i<200;i++){
	 cin >> a >> b;
	 sum = a + b;
	 digits.push_back(log10(sum)+1);
	}
	for(int i=0; i<digits.size();++i){
		cout << digits[i] << endl;
	}
	vector<int>().swap(digits);
	return 0;

}

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

C++: #include<iostream>

using namespace std;

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

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

using namespace std;

 string IntToString(int num){
	stringstream ss;
	ss << num;
	return ss.str();
}


int main(void){
	int count = 0;
	while (count < 200){
		int a, b;
		cin >> a >> b;
		if ((a < 0) || (b < 0)){
			break;
		}

		int sum = a + b;
		string str = IntToString(sum);
		cout << str.length() << endl;
		++count;
	}

	return 0;
}

C++: #include<stdio.h>

int calc(int x,int y){
  int a,t,k =0;
  t = x+y;
  while(t >= 10){
    t = t/10;
    k += 1;
  }
  return k;
}
int main(void){
  int a,b;
  while(scanf("%d %d",&a,&b) != EOF){
    printf("%d",calc(a,b));
  }
}