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<bits/stdc++.h>
using namespace std;
int a,b;
int Digit(int num){
    int cnt=0;
    while(num>0){cnt++;num/=10;}
    return cnt;
}
int main(){
    while(cin>>a>>b){
        cout<<Digit(a+b)<<endl;
    }
}

C++: #include<stdio.h>
int main()
{
	int a,b,sum;
	int m=200;
	loop:scanf("%d,%d",&a,&b);
	if((a>=0&&a<=1000000)&&(b>=0&&b<=1000000))
	{
		sum=a+b;
	}
	
	if(sum>999999)
		printf("7");
	else if(sum>99999)
		printf("6");
	else if(sum>9999)
		printf("5");
	else if(sum>999)
		printf("4");
	else if(sum>99)
		printf("3");
	else if(sum>9)
		printf("2");
	else
		printf("1");
		printf("\n");
		m--;
		if(m!=0)
	goto loop;
	return 0;
}

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

int main(){
    long long a,b;
    cin >> a >> b;
    long long sum = a + b;
    string str = to_string(sum);
    cout << str.length()<<endl;
}

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

using namespace std;

int main(void){

 int a,b;
 int ans;

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

  cout << ans << endl;
 }
}

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

int digit(int num){
	if((num / 10) > 0 ) return (digit(num/10))+1;
	else return 1;
}

int main(){
	int num1,num2,result=0;
	while(fscanf(stdin,"%d %d",&num1,&num2) != EOF){
		result = digit(num1+num2);
		printf("%d",result);
	}
	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
  int a, b;
  // cin returns 0 when input is invalid
  while (cin >> a >> b) {
    cout << log10(a+b) << endl;
  }
  return 0;
}

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

int main() {
  int a, b;
  cin >> a >> b;
  int count = 0;
  unsigned int ans = a + b;
  
  while (ans > 0) {
    count++;
    ans /= 10;
  }

  // cout << a << "," << b << "," << count << endl;
  cout << count << endl;
  return 0;
}

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

int main(void){
  long a,b;
  int n;
  cin >> n;
  for(int i=0;i<n;i++){
    cin >> a >> b;
    long s = a + b;
    int ans = 1;
    while(s > 0){
      s/=10;
      if(s > 0){
        ans++;
      }
    }

    cout << ans << endl;
  }
  return 0;
}

C++: #include<iostream>
 
  
using namespace std;
  
int main()
{
     unsigned int a,b,c,ans=0;//initializing numbers
    while(cin >> b >>c )//entering 2 numbers
    {
    a=b+c;//adding the 2 numbers
    while(a!=0)
    { 
        a/=10; ans++;//dividing sum by 10 then adding ans by 1 for number of digits
 
    }
        cout << ans << endl;//print out how many digits
        ans = 0;
     }
 
   return 0;
}

C++: #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

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

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

using namespace std;

int main() {
  int a, b;

  while (cin >> a >> b) {
    a += b;
    int dig_num = 1;
    while ((a /= 10) != 0) {
      ++dig_num;
    }
    cout << dig_num << "\n";
  }
}

C++: #include <iostream>

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

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

int main(void){
  long a,b;
  
  cin >> a >> b;
  long s = a + b;
  int ans = 1;
  while(s > 0){
    s/=10;
    if(s > 0){
      ans++;
    }
  }

  cout << ans << endl;
  return 0;
}

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

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

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

int main(void){
	int a,b,dig,i;
	double sum;
	while(1){
		std::cin >> a ;
		if(a=EOF) break;
		std::cin >> b;
		sum = (double)a+(double)b;
		dig = floor(log(sum)/log(10.0));
		std::cout << dig+1 << "\n";
	}
	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;
cout<<ss.str().size()<<endl;
return 0;
}

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

int main(void){
	while(true){
		int a, b, d=0, s; //d:digit s:sum
		cin >> a >> b;
		s = a + b;
		while(s>=1){
			s = s/10;
			d++;
		}
		cout << d << endl;
		if(cin.eof()) break;
	}
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <iomanip>
#include <cassert>
using namespace std;

#define GET_ARG(a,b,c,F,...) F
#define REP3(i,s,e) for (i = s; i <= e; i++)
#define REP2(i,n) REP3 (i,0,(int)(n)-1)
#define REP(...) GET_ARG (__VA_ARGS__,REP3,REP2) (__VA_ARGS__)
#define RREP3(i,s,e) for (i = s; i >= e; i--)
#define RREP2(i,n) RREP3 (i,(int)(n)-1,0)
#define RREP(...) GET_ARG (__VA_ARGS__,RREP3,RREP2) (__VA_ARGS__)
#define DEBUG(x) cerr << #x ": " << x << endl

typedef long long ll;

constexpr int INF = 1e8;
constexpr int MOD = 1e9+7;

int main(void) {
    int a, b;
    while (cin >> a >> b) {
        cout << to_string(a+b).size() << endl;
    }
    return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <algorithm>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <iostream>
using namespace std;
int main(){
	int a, b;
	while (cin >> a >> b) {
		int hoge = a + b;
		int iFigure;
		hoge = (int)log10(hoge) + 1;

		printf("%d\n", hoge);
	}
}

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



int main(void){

	int a, b, sum = 0, count;

	for (; 	cin >> a;){//??°????????????????????°?????????
		count = 0;
		sum = a + b;
		if (sum == 0){ cout << 0 << endl; }
		else if (sum != 0){

			while (sum > 9){

				sum /= 10;
				count++;

			}
			//?????°???count?????°
			cout << count + 1 << endl;
		}
	}


	return 0;
}

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

int main() {
	ios::sync_with_stdio(false);
	
	int a, b;
	while(cin >> a >> b){
		cout << (int)log10((double)(a+b)) + 1 << "\n";
	}
	
}

C++: main(a,b,i=1,x){for(scanf("%d%d",&a,&b),x=a+b;x/=10;i++);printf("%d\n",i);}

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

int main() {

    int a, b;
    while (cin >> a >> b) {
        int c = a + b;
        string s = to_string(c);
        cout << s.length() << endl;
    }

    return 0;
}

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

int main(){
    int a,b,c,i;
	while(true){
		cin >> a >> b;
		if(a==0 && b==0)break;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << "\n";
	}

    
    return 0;
}

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

int main()
{
	
	int a,b,c;
	char str[16];
	for(int i=0;i<3;++i){
		cin >> a >>b;

		c = sprintf(str,"%d",a + b);

		cout << c << endl;
	}
	return 0;
}