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<iostream>
using namespace std;
int main(){
  int a,b;
  while(cin >>a>>b){
    int ans = 1,c = a+b;
    for(;c>9; ans++,c/=10);
    cout <<ans<<endl;
  }
  return 0;
}

C++: #coding:UTF-8

a=int(input())
b=int(input())

a+=b;
b=1
for num in range(1,8):
    b*=10
    if a<b:
        print(num)
        break

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

// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002

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

C++: 

 #include<iostream>
#include<string>
#include<algorithm>
#include<vector>

using namespace std;

//Nayeem Shahriar Joy ,Applied Physics And Electronic Engineering , University of Rajshahi.

int main(){

	int a, b, sum;

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

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

#define REP(i,n) for(int i=0;i<n;++i)
#define rep(n) REP(i,n)


int main()
{
	int a,b; 

	while(cin>>a>>b)
	{
		int sum=a+b;
		int d=0;

		while(sum){ d++; sum/=10; }

		cout<<d<<endl;
	}

	return 0;
}

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

int countDigit(double num)
{
    return log10(num) + 1;
}

int main()
{
    double a, b;
    while(cin >> a >> b)
    {
        cout << countDigit(a + b) << endl;
    }
    return EXIT_SUCCESS;
}

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

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

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

int main(){

const int num = 3;
int t;

int a[num] = {0};
int b[num] = {0};
int c[num] = {0};
int cou = 0;

for(int i = 0; i < num; i++)
{
	cin >> a[i] >> b[i];
}

for(int i = 0;i < num;i++)
	{
		c[i] = a[i] + b[i];
		while(c[i] > 0)
		{
		c[i] /= 10;
		cou++;
		}
		if(cou == 0){cout << cou+1 << "\n";}
		else {cout << cou << "\n";}
		cou = 0;
	}
    return 0;
}

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

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

C++: /*
filename:Volume0-0002-Digit Number
last edited at 2015/8/15 by charis
*/

#include<iostream>

int main(){
	
	int a,b,c,x,i,m,n;
	std::cin >>a>>b;
	
	c=a+b;
	
	for (x=1; 1; x++){
		m=10;
		for (i=1; i<x; i++) m*=10;
		n=c/m;
		if(n==0)break;
		
	}
	
	std::cout<<x<<"\n"; 
	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77676";
	
	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(){
  long long int a,b;
  while(cin>>a>>b){
    int co=0;
    long long int c=a+b;
    if(c==0)co++;
    while(c){co++;c/=10;}
    cout<<co<<endl;
  }
}

C++: 
/* vo0_02.cpp */
#include <iostream>
using namespace std;

int main()
{
	int a, b, c;
	int count;

	while (true) {

		cin >> a >> b;
		if (cin.eof()) break;

		c = a + b;
		
		count = 1;
		for (; c >= 10; c /= 10) count++;

		cout << count << '\n';
	}

	return 0;
}

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

int main(){
int a;
int b;
int c;
int n;
int d;
while(cin >> a >> b){
c=a+b;
d=1;
n=0;
while(1){
if(d<c){break;}
d=d*10;
n=n+1;}
cout << n << endl;
}
    return 0;
}

C++: #pragma GCC optimize "O3"
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <cctype>
#include <string>
#include <cstring>
#include <ctime>
#define whole(f,x,...) ([&](decltype((x)) whole) { return (f)(begin(whole), end(whole), ## __VA_ARGS__); })(x)
#define ALL(a)  (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
#define REP_FROM(i,m,n) for (int i = (m); (i) < int(n); ++(i))
#define REP_REV(i,n) for (int i = (n)-1; (i) >= 0; --(i))
#define REP_FROMREV(i,m,n) for (int i = (n)-1; (i) >= int(m); --(i))
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
#ifndef LOCAL
#define cerr if (false) cerr
#endif
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();}
template<class T> inline T sqr(T x) {return x*x;}
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;

template <class T> inline void setmax(T & a, T const & b) { a = max(a, b); }
template <class T> inline void setmin(T & a, T const & b) { a = min(a, b); }
template <class T> T sq(T x) { return x * x; }
template <class T> T clamp(T a, T l, T r) { return min(max(a, l), r); } // [l, r]
const double EPS = 1e-10;
const double PI  = acos(-1.0);

int getDigit(int num) {
	int cnt = 0;
	while(num > 0) {
		num /= 10;
		cnt++;
	}
	return cnt;
}

int main(int argc, char *argv[]) {
	// Something to do
	int a, b;

	while(scanf("%d %d", &a, &b) != EOF)
		cout << getDigit(a+b) << endl;

	return 0;
}

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

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

int main(){
    int a,b,c,i;
	for(int j=0;j<200;j++){
		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 << endl;
	}

    
    return 0;
}

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

int main(){
  int a, b, c;
  int i;
  int num;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    
    i = 10;
    num = 1;
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
  return 0;
  
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a, b;
  while(cin >> a >> b){
      int sum = a + b;
      int digit = 0;
      while(sum != 0){
        sum /= 10;
        digit++;
      }
      cout << digit << "\n";
  }

  return 0;
}

C++: #include<stdio.h>

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