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

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

int main(){
  int tmp,tmp2;
  cin >> tmp >> tmp2;
  tmp += tmp2;
  
  cout << to_string(tmp).length << endl;
  return 0;

}

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

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

int main(){
	
	int a, b, sum;
	sum = a + b;
	int x[114514];
	int n = 0;
	
	
	while(cin >> a >> b){
		
		sum = a + b;
		int z = 0;
		
		while(sum != 0){
			sum = sum / 10;
			z++;
			
		}
		
		x[n] = z;
		n++;	
			
	}
	
	for(int c=0; c<n; c++){
		cout << x[c] << endl;
	}
	
	
	

	return 0;
	
}

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

int main() {
	long long int a, b;
	int p=1;
	long long int c=10;
	
	while(cin>>a>>b) {
		p=1;
		c=10;
		while(c<=a+b) {
			p++;
			c*=10;
		}

		cout<<p<<endl;
	}
}

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

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

int main(){
	for (int m=0;m<=200;m++){
	int a,b,c,i;
	i = 1;
	cin >> a  >> b;
	c = a + b;
	while(c/10!=0){
		i++;
		c = c/10;
	}
	cout << i <<endl;
	}
		
    return 0;
}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  long long a,b,ans=1,ten=10;
  cin>>a>>b;
  a+=b;
  while(a>=10){
    ans++;
    a/=10;
  }
  cout<<ans<<endl;
}

C++: #include <iostream>
#include <string>
#include <vector>

using namespace std;

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

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

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