Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

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

int main() {
/*	int a[3];
	cin >> a[0] ;
	a[1] = 3;
	a[2] = a[0] * 10;

	cout << a[0] <<" " << a[1] <<" "<< a[2] << endl;
	
	for (int i = 0; i < 3; i++) {
		cout << a[i] << endl;
	}


	sort(a,a+5);
*//*
	int a[10];
	for (int i = 0; i < 10; i++) {
		cin >> a[i];
	}
	
	sort(a,a+10,greater<int>());

	for (int i = 0; i < 3; i++) {
		cout << a[i]<<endl;
	}
*/
	int ans = 0;
	int a, b,c;
	while(cin>>a>>b) {
		ans = 0;
		c = a + b;

		if ( c==0   ) {
			ans = 1;
		}
		else{
			while (c > 0) {
				c /= 10;
				ans++;
			}
		}
		cout << ans << endl;
	}
	return 0;;
}

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

int main(){

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

		for (ans = 0;;++ans){
			sum = sum / 10;
			if(sum <= 0){
				++ans;
				break;
			}
		}
		cout << ans;
	}
	return 0;
}

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

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

C++: #include<iostream>

using namespace std;

int main(){

  while(1){
    int a,b;
    cin >> a >> b;
    int count = 0;
    int result = a + b;
    while(1){
      if(result == 0){
        cout << count << "\n";
        break;
      }
      result /= 10;
      count++;
    }
  }
  return 0;
}

C++: #include <iostream>
using namespace std;
int main(void)
{
    int a, b;
    while(cin >> a >> b)
    { 
        cout << a + b << "\n";
    }
}

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

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

C++: import math 
a = input()
b = input()

c = int(math.log10(a) + 1) + int(math.log10(b) + 1)

print c

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

int main()
{
	int a, b;
	int keta;

	while( cin >> a >> b )
	{
		keta = 0;
		a += b;
		while( 1 )
		{
			a /= 10;
			if( a != 0 )
			{
				keta++;	
			}else{
				break;
			}
		}
		cout << ( keta + 1 ) << endl;
	}
	return 0;
}

C++: #include<stdio.h>

int main(void)
{
	int a, b, x;
	while(scanf("%d %d", &a, &b)!=EOF)
	{
		x=a+b;
		if(x<10)
		printf("1\n");
		else if(x<100)
		printf("2\n");
		else if(x<1000)
		printf("3\n");
		else if(x<10000)
		printf("4\n");
		else if(x<100000)
		printf("5\n");
		else if(x<1000000)
		printf("6\n");
		else if(x<10000000)
		printf("7\n");
	}
	
	return 0;
}

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

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int m = a+b;
		if(m == 0)
			cout << "1" << endl;
		else { 
			int ans = (int)log10((double)m * 10);
			cout << ans << endl;
		}
	}
	return 0;
}

C++: #include <cctype>
#include <cmath>
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
#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 SORT(v, n) sort(v, v+n);
#define VSORT(v) sort(v.begin(), v.end());
#define LL long long
#define pb(a) push_back(a)
#define INF 999999999
using namespace std;
typedef pair<int, int> P;
typedef pair<LL, LL> LP;
typedef pair<int, P> PP;
typedef pair<LL, LP> LPP;

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

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

C++: #include<iostream>
using namespace std;
int main()
{
	int a, b, sum;
	for (int i = 0; i < 200; i++)
	{
		cin >> a >> b;
		sum = a + b;
		if (sum < 10)cout << "1" << endl;
		if (sum < 100 && sum >= 10)cout << "2" << endl;
		if (sum < 1000 && sum >= 100)cout << "3" << endl;
		if (sum < 10000 && sum >= 1000)cout << "4" << endl;
		if (sum < 100000 && sum >= 10000)cout << "5" << endl;
		if (sum < 1000000 && sum >= 100000)cout << "6" << endl;
		if (sum < 10000000 && sum >= 1000000)cout << "7" << endl;

	}
}

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

using namespace std;

int main()
{
	int a[200], b[200], n, ans=0;
	for (int i = 0; i < 200; i++) 
	{
		cin >> a[i] >> b[i];
		n = a[i] + b[i];
		while (n >= 1) 
		{
			n /= 10;

			ans++;
		}
		cout << ans << endl;
		ans = 0;
	}
}

C++: #include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <vector>
#include <iostream>
#include <set>
using namespace std;
typedef long long ll;

int main(int argc, char const *argv[]) {
	int a, b;
	while (cin >> a >> b) {
		int sum = a + b;
		int res = 0;
		while (sum > 0) {
			sum /= 10;
			res++;
		}
		cout << res << endl;
	}
	return 0;
}

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

int keta(int num) {
	int result = 1;
	while (true) {

		if (num < 10)return result;

		num /= 10;
		result++;
	}



}

int main() {
	int a, b,c;
	while (cin >> a >> b) {
		printf("%d\n", keta(a + b));

	}
	

	//system("pause");
	return 0;
}

C++: #include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a,b;
	cin >> a>>b;
string ss="";
  ss << a+b;
   string x=ss.str();
cout<<x.size()<<endl;
return 0;
}

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

int main() {

	int a, b, c;
	char e[100];

	while (cin >> a >> b) {

		c = sprintf_s(e, "%d", a+b);

		cout << c << endl;
	}

	return 0;
}

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

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

C++: #include<iostream>
using namespace std;
int main()
{
int a,b,i;
i=0;
while(cin>>a>>b;)
{
cin>>a>>b;
if(a+b<10)
{
	cout<<1<<endl;
}
else if(a+b<100)
{
	cout<<2<<endl;
}
else if(a+b<1000)
{
	cout<<3<<endl;
}
else if(a+b<10000)
{
	cout<<4<<endl;
}
else if(a+b<100000)
{
	cout<<5<<endl;
}
else if(a+b<1000000) 
{
	cout<<6<<endl;
}
else if(a+b<10000000)
{
	cout<<7<<endl;
}
}
return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555555";
	
	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>
using namespace	std;

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

  return 0;
}

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

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