Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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;
}

C++: #include<cstdio>
#include<vector>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		vector<char> c(255);
		printf("%d\n",sprintf(c,"%d",a+b));
	}
	return 0;
}

C++: #include <cstdio>

using namespace std;

int a,b;

int main() {
  while(scanf("%d %d", &a, &b) != EOF) {
    int c = a + b;
    int r = 0;
    while(r++, c /= 10);
    printf("%d\n", r);
  }
}

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

int main(){

	array<int, 6> t{ {10, 100, 1000, 10000, 100000, 1000000} };

	for (int i = 0; i < 200; ++i) {
		 if (!cin) {
			 break;
		 }
		 int a, b, sum;
		 cin >> a >> b;
		 
		 sum = a + b;
		 auto result = find_if(t.begin(), t.end(), [sum](const int x){return sum < x; });
		 auto output = result - t.begin() + 1;
		 cout << output << endl;
	}


	return 0;
}

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

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

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

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

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

int main()
{
  int a,b,sum,digit=0;
  try{
    while(1){
      digit = 0;
      cin >> a >> b;
      sum = a + b;
      while(sum > 0){
	sum /= 10;
	digit++;
      }
      cout << digit;
    }
  }catch(...){
    return 0;
  }
}

C++: 
#include <iostream>
int main(){
	while (true){
		int input_num[2], sum;
		int count = 0;
		std::cin >> input_num[0] >> input_num[1];
		if (std::cin.eof())
			break;
		sum = input_num[0] + input_num[1];
		while (sum){
			count++;
			sum /= 10;
		}
		std::cout << count << '\n';
	}
}

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

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

C++: #include <iostream>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <iomanip>
#include <fstream>
#include <stdint.h>
#include <cmath>
#include <algorithm>
#include <utility>
#include <numeric>
using namespace std;

constexpr int INF       = 1000000000;/* 1e+9a */
constexpr int MODULO    = 1000000007;

#define REP(i,f,n) for(int i=(f); i < (n); ++i)
#define PER(i,f,n) for(int i=(n-1); i >= f; --i)

//----------------------------------
//----------------------------------
//
int digit(int n)
{
	int count = 0;
	while(n > 0)
	{
		n /= 10;
		count++;
	}
	return count;
}

signed main()
{
    ios::sync_with_stdio(false);
	int a, b;
	while(cin >> a)
	{
		cin >> b;
		cout << digit(a+b) << endl;
	}

}

C++: #include<iostream>
using namespace std;
int main(){
	int a,b,c,d=1;
	cin>>a>>b;
	c=a+b;
	while(true){
		if(c<10){
			break;
		}
		c=c/10;
		d=d+1;
	}
	cout<<d;
}

C++: #include<iostream>
#include<cmath>
using namespace std;
int main()
{
    int a,b;
    for(int i=1;i>0;)
    {
        cin>>a>>b;
        if(a!=EOF)
        {
        cout<<(int)log10(a+b)+1<<endl;
        }
        else return 0;
    }
    return 0;
}

C++: #include <iostream>

using namespace std;

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