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 <vector>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <deque>
#include <algorithm>
#include <utility>
#include <functional>
#include <sstream>
#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#include <climits>
#include <cassert>
using namespace std;
inline int toInt(string s) {int v; istringstream sin(s);sin>>v;return v;}
template<class T> inline string toString(T x) {ostringstream sout;sout<<x;return sout.str();}
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;
typedef pair<int, int> pii;
typedef long long ll;
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(),(a).rend()
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define EXIST2(s,e) (find(ALL(s),(e))!=(s).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define EACH(t,i,c) for(t::iterator i=(c).begin(); i!=(c).end(); ++i)
const double EPS = 1e-10;
const double PI  = acos(-1.0);


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

C++: #include <iostream>
 
int main(){
    int a, b ,i ,n ;
    while(std::cin>>a>>b){
    i=1;
    for(n=1;a+b>=i*10;n++){
    i=i*10;
    }
    std::cout<<n<<std::endl;
}
return 0;
}

C++: #include <stdio.h>

int main(){
	
	int x ,y;
	while(	scanf("%d %d",&x,&y) != EOF){
		int z  = x+y;
		int digCnt = 1;
		while(z/10!=0){
			z/=10;
			digCnt++;
		}
		printf("%d\n",digCnt);
	}
	
	return 0;
}

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

C++: #include <iostream>

using namespace std;

int main(){
	
	int a,b;
	int  s,k=0;
	
	while(1){
		cin>>a>>b;
		if(a<0||b<0)
			break;
	s=a+b;
	while(s!=0){
	s=s/10;
	k++;
	}
		cout<<k<<endl;
	}
	
	
	}

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

//??????????????????????????´??°??????????????°?????¨????????????
int main()
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=3,i=0;

	while( cin >> a[i] >> b[i]) i++;

	for(i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		cout << cnt << endl;
		cnt=0;
	}

	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <algorithm>
#include <math.h>
#include <vector>
#include <string>
#include <sstream>

#define rep(i, j) for(int i = 0; i < j; i++)
#define all(i) i.begin(), i.end()
#define ll long long

using namespace std;

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

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

	int a, b;
	string s;
	// code
	while (true)
	{
		cin >> a >> b;
		s = Num2Str(a + b);
		cout << s.size() << endl;
	}

	return 0;
}

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

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

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

C++: #include <iostream>

using namespace std;

int pers(int k) {
	int ret = 0;
	while (k!=0) {
		k /= 10;
		ret++;
	}
	return ret;
}

int main() {
	int k, l;
	while (cin >> k >> l) {
		cout << pers(k+l) << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    string a, b;
    while((cin >> a >> b) != EOF){
        printf("%d %d\n", a.length(), b.length());
    }
}

C++: #include <stdio.h>

int main(void)
{
	int a, b;
	int n;
	int i;
	
	while (1){
		scanf("%d%d", &a, &b);
		n = 1;
		i = 0;
		while ((a + b) / n != 0) n *= 10, i++;
		printf("%d\n", i);
	}
	
	return (0);
}

C++: #include<iostream>
#include<stdio.h>

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

	// 値の入力
	cin >> num1 >> num2;

	//整形
	sprintf_s(str,"%d\0",(num1 + num2));

	// 文字数計測
	for(i=0;str[i] != '\0';i++){
	}

	// 文字数表示
	cout << i << endl;

	return 0;
}

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

int main(){
	int a,b;

	//while(1){
		//a = 0;
		cin >> a >> b;
		//if(a == 0)break;

		int tag = (a+b)/1000000;
		int keta = 7;
		if(tag==0){
			tag = (a+b)/100000;
			keta = 6;
		}
		if(tag==0){
			tag = (a+b)/10000;
			keta = 5;
		}
		if(tag==0){
			tag = (a+b)/1000;
			keta = 4;
		}
		if(tag==0){
			tag = (a+b)/100;
			keta = 3;
		}
		if(tag==0){
			tag = (a+b)/10;
			keta = 2;
		}
		if(tag==0){
			tag = (a+b)/1;
			keta = 1;
		}


		cout << keta << endl;
	//}
	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555547";
	
	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<stdio.h>
int main(){
    int a,b,c=1;
    while(scanf("%d %d",&a,&b)!=EOF){
        c=0;
        for(int i=1;i<1000001;i=i*10){
            if((a+b)/i==0){
                break;
            }
            c++;
        }
        printf("%d\n",c);
    }
    return 0;
}

C++: #include <iostream>

int main(){
  int a, b, c;
  int i = 1;
  int num = 0;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

C++: #include<iostream>
#include<string>
int main() {
	int data1,data2,i;
	char a[100];
	while (1) {
		std::cin >> data1 >> data2;
		if (data1==EOF) break;
		data1 += data2;
		std::string aa = std::to_string(data1);
		for (i = 0; aa[i] != '\0'; i++) {

		}
		std::cout << i << std::endl;
	}
}

C++: #include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int count = 1;

	scanf("%d %d", &a[0], &a[1]);
	
	i = a[0] + a[1];
	count = 0;
	while(i > 0){
		count++;
		i = i/10;
	}

	printf("%d\n", count);
	
	return 0;
	
}

C++: #include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <list>
#include <cmath>
#include <fstream>
#include <queue>
#include <sstream>
#include <algorithm>
#include <cstring>
using namespace std;

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

C++: #include<iostream>
using namespace std;
int main()
{
int a,b,c;
while(cin>>a>>b)
{int k=0;
 c=a+b;

 while(c!=0) 
 {
 c=c/10;
 k++;

 }

 cout<<k<<endl;

}

return 0;

}

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

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		while (1) {
			if (sum <= 0) break;
			sum /= 10;
			++cou;
		}
		printf("%d\n", cou);
		cou = 0;
	}
}