Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

C++: //↓template↓

#include "bits/stdc++.h"
using namespace std;
#define Would
#define you
#define all(n)  n.begin(),n.end()
const long long INF = 1e18;
const long long MOD = 1e9 + 7;
const double pi = acos(-1);
const int SIZE = 1 << 17;
int dx[] = { 1,0,-1,0 }, dy[] = { 0,1,0,-1 }, alp[30];
long long fac[200005], finv[200005], inv[200005];
vector<long long>dij;
struct edge { long long to, cost; };
vector<vector<edge> >G;

long long mod_pow(long long a, long long b) {
	long long res = 1, mul = a;
	for (int i = 0; i < 31; ++i) {
		if (b >> i & 1) {
			res *= mul;
			res %= MOD;
		}
		mul = (mul * mul) % MOD;
	}

	return res;
}

void addedge(int from, int to, int cost) {
	G[from].push_back({ to,cost });
	G[to].push_back({ from,cost });
}

//↑template↑


int digits(int n) {
	int ans = 0;
	while (n) {
		++ans;
		n /= 10;
	}
	return ans;
}

int main() {
	int a, b;
	while (cin >> a && cin >> b) {
		cout << digits(a + b) << endl;
	}
}

C++: #include <stdio.h>

int main(){
 int a,b;
 while(scanf("%d %d ",&a,&b)){
  a+=b;
  b=0;
  while(a>0){
  b++;
  a/=10
  }
  printf("%d\n",b?b:1);
 }



 return 0;
}

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

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

C++: #include<iostream>

using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		char s[7];
		sprintf(s, "%d", a + b);
		cout << strlen(s) << endl;
	}


	return 0;
}

C++: /*Filename: aoj0002.cpp
 *Author: Mushiyo
 */

#include <iostream>
#include <cmath>

using namespace std;

int countDigit(int num){
	if(num == 0){
		return 1;
	}

	int digit = (int)log10(num) + 1;

	return digit;
}

int main(){
	int a = 0, b = 0;

    while(cin >> a >> b){
        cout << countDigit(a + b) << endl;
    }

	return 0;
}

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

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

C++: #include <iostream>

int main(){

  int a[200];
  int b[200];

  int i=0,A,B;

  while(std::cin >> A >> B){
    a[i] = A;
    b[i] = B;
    ++i;
  }
  int k;

  for(int j=0;j<i;j++){
    a[j] += b[j];
    k=0;
    do{
      a[j] /= 10;
      ++k;
    }while(a[j]<10);

    std::cout << k << std::endl;
  }
}

C++: #include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;
int main(){
 int a, b, c, count = 0;
 while(cin >> a >> b){
 c = a + b;
 while(c != 0){
  c = c / 10;
  count++;
 }
 cout << count << endl;
 count = 0;
}

 return 0; 
}

C++: using System;
using System.Linq;
 
public class Program
{
    private static void Main(string[] args)
    {
        string line;
        while (!string.IsNullOrEmpty(line = Console.ReadLine()))
        {
            Console.WriteLine(line.Split().Select(int.Parse).Sum().ToString().Length);
        }
    }
}

C++: #include <stdio.h>

int main(int argc, const char * argv[]) {
    int dataset[2][200],i,count=0,x;
    for (i=0; i<200; i++) {
        scanf("%d %d",&dataset[0][i],&dataset[1][i]);
//        if () {
//            break;
//        }
    }
    for (i=0; i<200; i++) {
        x=dataset[0][i]+dataset[1][i];
        while (1) {
            x=x/10;
            count++;
            if (x<1) {
                break;
            }
            
        }
        
        
        
        printf("%d\n",count);
        count=0;
    }
    
    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<stdio.h>
int main(void)
{
    int a,b,i=1,n;
	scanf("%d %d",&a,&b);
	a=a+b;
	n=1;
	for(i=1;i<8;i++){
		if(n>a){
			break;
		}
		n=n*10;
	}
	printf("%d\n",i-1);
	return 0;
}

C++: /*
 * kadai0002.cpp
 * Digit Number
 * ??????????????????????????´??° a ??¨ b ??????????????°???????????????????????????????????°?????????
 * ?????°???????????????????????????????????????????????????????????????????????????????????????????????????
 * ???????????????????????????????????´??° a ??¨ b ??????????????????????????§????????????????????????????????????
 * ??\????????????????????§????????????????????????a ??¨ b ??????????????´??°??¨????????????
 *
 *  Created on: 2016/05/23
 *      Author: Moniwa
 */

#include<iostream>
using namespace std;

/* ??¢??°???
 * @return ?????°x????????°
 */
int digit_num(int x){
	int count = 1;
	while(true){
		if((x = x / 10) == 0)	break;
		else	count++;
	}
	return count;
}

int main(){
    int a,b;
	while(	cin >> a >> b ){	// cin ??????????????????????????§!0??????????????±?????§0????????????
	cout << digit_num(a+b) << endl;
	}

    return 0;
}

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

int main()
{
	int a, b;
	stringstream ss;
	while (cin >> a >> b)
	{
		a += b;
		string s;
		ss << a; ss >> s; ss.clear();
		cout << static_cast<int>(s.size()) << endl;
	}
	return 0;
}

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace project
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] numbers=input.Split(' ');
            int  answer = Convert.ToInt16(numbers[0] + numbers[1]);
            string amswer1 = Convert.ToString(answer);
            Console.WriteLine((amswer1.Length)+1);
        }
    }
}

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

using namespace std;

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

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

using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;
	
	do
	{
		int sum = a + b;
		int count = 0;
	
		for(int i = 10; sum != 0; i *= 10)
		{
			int diff = sum % i;
			sum -= diff;
			count++;
		}
		cout << count << endl;
	
	}while( (cin >> a) && (cin >> b) );
	
	return 0;
}

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

int main(){
	int a;
	int b;
	int sum;

	while (cin >> a >> b){
		sum = a + b;
		if (sum < 10){
			cout << 1 << endl;
		}
		else if (sum > 10 && sum < 100){
			cout << 2 << endl;
		}
		else if (sum < 1000 && 100 < sum){
			cout << 3 << endl;
		}
		else if (sum < 10000 && 1000 < sum){
			cout << 4 << endl;
		}
		else if (sum < 100000 && 10000 < sum){
			cout << 5 << endl;
		}
		else if (sum < 1000000 && 100000 < sum){
			cout << 6 << endl;
		}
		else if (sum < 10000000 && 1000000 < sum){
			cout << 7 << endl;
		}
		else if (sum < 100000000 && 10000000 < sum){
			cout << 8 << endl;
		}
	}

	return 0;
}

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

C++: #include <iostream>
#include <cmath>
 
int main(void) {
    u_int a, b;
 
    while (std::cin >> a >> b) {
        std::cout << (int) log10 (a + b) + 1 << std::endl;	//a+b = 0?????¨????????¨??????
    }
 
    return 0;
}