Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

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

#define REP(i, x) for (int i = 0; i < (int)(x); i++)
#define REPS(i, x) for (int i = 1; i <= (int)(x); i++)

int main(int argc, char *argv[])
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int a, b;

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

    return 0;
}

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

long int a,b,ans,sum;
int main()
{

    while(scanf("%ld%ld",&a,&b)!=EOF)
    {
        ans=0;
        sum=a+b;
        while(1){

        if(sum<10)
        {
            ans=ans+1;
            break;
        }
        ans=ans+1;
        sum=sum/10;
        }
        printf("%ld\n",ans);
    }
}

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

using namespace std;

int main(void){

 int a,b;
 int ans;

 while(cin >> a >> b){
  ans=log10(a+b)+1;
  cout << ans << endl;
 }
}

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

int main() {
	int a, b;
	while (cin >> a >> b) {
		int n = a + b;
		int c = 1;
		while (n) {
			int x = n / 10;
			n /= 10;
			if (x) {
				c++;
			}
		}

		cout << c << endl;
	}
}

C++: int a;
  int b;
  int ans;
  while(cin >> a >> b){
    ans = a + b;
    if(ans>=0 && ans<=99){
      cout << "2" <<endl;
    }
    else if(ans>=100 && ans<=999){
      cout << "3" <<endl;
    }
    else if(ans>=1000 && ans<=1999){
      cout << "4" <<endl;
    }
  }
  return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int a1[200],b[200],f,i=0,a,g,k=0;
	while(cin>>f){
		scanf("%d %d",&a1[i],&b[i]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=a1[j]+b[j];
		for(g=0;;g++){
			if(a==0&&g==0){
				printf("%d\n",a);
				break;
			}
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

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

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

  while(scanf("%d%d",&a,&b)!=EOF){
    digit = a+b;
    while(digit!=0){
      digit/=10;
      count++;
}
    cout << count << endl; 
    count =0; 
}
  return 0;
}

C++: #include<iostream>

using namespace std;

int main(){

	int  a, b,c, counter= 1, sum=1;

	while(cin >> a>>b){ 

		while(a/10!=0){
			a=a/10;
			counter++;
		}
		while(b/10!=0){
			b=b/10;
			sum++;
		}
		
		cout<<counter+sum<<endl;

		counter=1;
		sum=1;
		

	}

}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7761";
	
	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,t;
	
	while(scanf("%d",&a)!=EOF){
		scanf("%d",&b);
		c=a+b;
		
		for(t=1;c/10!=0;t++){
			c=c/10;
		}
		printf("%d\n",t);
		
	}
	return 0;
}

C++: #include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair<ll, ll> P;

#define EACH(i,a) for (auto& i : a)
#define FOR(i,a,b) for (ll i=(a);i<(b);i++)
#define RFOR(i,a,b) for (ll i=(b)-1;i>=(a);i--)
#define REP(i,n) for (ll i=0;i<(n);i++)
#define RREP(i,n) for (ll i=(n)-1;i>=0;i--)
#define debug(x) cout<<#x<<": "<<x<<endl
#define pb push_back
#define ALL(a) (a).begin(),(a).end()

const ll linf = 1e18;
const int inf = 1e9;
const double eps = 1e-12;
const double pi = acos(-1);

template<typename T>
istream& operator>>(istream& is, vector<T>& vec) {
	EACH(x,vec) is >> x;
	return is;
}
template<typename T>
ostream& operator<<(ostream& os, vector<T>& vec) {
	REP(i,vec.size()) {
		if (i) os << " ";
		os << vec[i];
	}
	return os;
}
template<typename T>
ostream& operator<<(ostream& os, vector< vector<T> >& vec) {
	REP(i,vec.size()) {
		if (i) os << endl;
		os << vec[i];
	}
	return os;
}

string f(ll n) {
	stringstream ss; ss << n;
	string res; ss >> res;
	return res;
}

int main() {
	std::ios::sync_with_stdio(false);
	std::cin.tie(0);
	ll a, b;
	while (cin >> a >> b) {
		ll c = a + b;
		cout << f(c).size() << endl;
	}
}

C++: #include <iostream>
//#include <iomanip>
//#include <vector>
//#include <string>
#include <algorithm>
#include <functional>

using namespace std;

int main(){

	int a, b, c, ans ;


	while (1){
		ans = 1;

		if(!(cin >> a)) break;
		cin >> b;

		c = a + b;

		while (c /= 10){
			ans++;
		}
		cout << ans << endl;
	}


	return 0;
}

C++: #define _USE_MATH_DEFINES
#include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include <string.h>
#include <stack>
#include <algorithm>
#include <stdio.h>
#include <functional>
using namespace std;

//??°?????????????????°

void function()
{
    //??¢??°
}
 
int main(){
	int a, b;
	while(cin >> a >> b){
		int sum = a + b;
		int cnt = 1;
		while(true){
			sum /= 10;
			if(sum == 0){
				break;
			}
			cnt++;
		}
		cout << cnt << endl;
	}
    return 0;
}

C++: #include <iostream>

using namespace std;

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

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

C++: #include <iostream>
#include <string>
#include <strstream.h>
#include <math.h>

using namespace std;

int main()
{
	string tmp;
	int nspace;
	do
	{
if(cin.eof()) break;
		getline(cin,tmp);
		nspace=tmp.find(" ");

		string astring=tmp.substr(0,nspace);
		string bstring=tmp.substr(nspace+1);

		istrstream astr(astring.data());
		istrstream bstr(bstring.data());

		int a,b;

		astr>>a;
		bstr>>b;

		int a_keta=(int)log10(a)+1;
		int b_keta=(int)log10(b)+1;

		cout<<a_keta+b_keta;
		
				 
	}while(1);

	
	return 0;
}

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

int main()
{
  long n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  long sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

int main() {
	int a, b;
	while (cin >> a >> b) {
		double tmp = a + b; int keta = 0;
		while (true) {
			if (tmp < 10)break;
			tmp = tmp / 10;
			keta++;
		}
		cout << keta << endl;
	}
}

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

int main(void)
{
	int32_t first  = 0;
	int32_t second = 0;

	while( std::cin >> first )
	{
		std::cin >> second;

		std::cout << static_cast<int32_t>(std::log10(first + second))+1 << std::endl;
	}

	return 0;
}

C++: //
//  main.cpp
//  b
//
//  Created by h3037178 on 2017/07/31.
//  Copyright ?? 2017??´ ?????£?????????. All rights reserved.
//

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    int i,o,b=0,f;
    for(int p=0;p<200;p++){
        cin>>i>>o;
        b=0;
        f=i+o;
        if(f<=0||f>2000000  ){
            break;
        }
        for(int j=1;j<=1000000;j=j*10){
            if(i+o>=j){
                b++;
            }else{
                break;
            }
        }
        cout<<b<<endl;
        }
}

C++: #include<stdio.h> 
int main() 
{ 
      int a,b,x,w; 
      while(scanf("%d %d",&a,&b)!=EOF) 
      { 
         x=a+b;
		 w=0; 
         while(x) 
           { 
		      w++; 
              x/=10; 
           } 
         printf("%d\n",w); 
      } 
      return 0; 
}