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<string.h>
#include<math.h>
using namespace std;

//get digit(return int)
int get_digit(int num){
    int digit = 0;
    while(num > 0){
        num = num/10;
        digit++;
    }
    return digit;
}

int main(){
    int a, b;
    int answer[200];
    int size = 0;

    while(cin >> a >> b){
        if(size > 200){
            break;
        }
        answer[size] = get_digit(a + b);
        size++;
    }
    for(int i = 0;i < size;i++){
        cout << answer[i] << "\n";
    }
    return 0;
}

C++: #include <cstdio>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <climits>
#include <ctime>
#include <queue>
#include <stack>
#include <algorithm>
#include <list>
#include <vector>
#include <set>
#include <map>
#include <iostream>
#include <deque>
#include <complex>
#include <string>
#include <iomanip>
#include <sstream>
#include <bitset>
#include <valarray>
#include <iterator>
using namespace std;
typedef long long int ll;
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned long long ull;
typedef pair<int, int> pii;
typedef vector<int> vi;
 
#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();i++)
#define RREP(i,x) for(int i=((int)(x)-1);i>=0;i--)
#define RFOR(i,c) for(__typeof((c).rbegin())i=(c).rbegin();i!=(c).rend();i++)
#define ALL(container) container.begin(), container.end()
#define RALL(container) container.rbegin(), container.rend()
#define SZ(container) ((int)container.size())
#define mp(a,b) make_pair(a, b)
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
 
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
template<class T> ostream& operator<<(ostream &os, const vector<T> &t) {
os<<"["; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"]"; return os;
}
template<class T> ostream& operator<<(ostream &os, const set<T> &t) {
os<<"{"; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"}"; return os;
}
template<class S, class T> ostream& operator<<(ostream &os, const pair<S,T> &t) { return os<<"("<<t.first<<","<<t.second<<")";}
 
const int INF = 1<<28;
const double EPS = 1e-5;
const int MOD = 1000000007;
 
 
int a, b;
 
main(){
    while(cin >> a >> b){
        cout << (a+b?ceil(log10(a+b+EPS)):1.) << endl;
    }
    return 0;
}

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

int a;
int b;

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

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
  while (1) {
    long a, b;
    cin >> a >> b;
    if (cin.eof()) break;
    cout << (int)(log10(a + b) + 1) << endl;
  }
}

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

int main()
{
	int n, i;
	
	cin >> n;
	
	for(i = 1; i <= n; i++)
	{
		if(i % 3 == 0)
		    cout << " " << i;
		else if(i % 10 == 3)
		    cout << " " << i;
	}
	cout << endl;
	
	return 0;
}

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

int main(void) {
    int a, b;
    while(scanf("%d %d", &a, &b) != EOF) cout << to_string(a + b).length() << endl;
    
    return(0);
}

C++: #include<iostream>

using namespace std;
int main(){
    int a,b;
    while(true){
        cin >> a >> b;
        if(a == EOF){
            return 0;
        }
        a += b;
        int i = 0;
        while(a > 0){
            a /= 10;
            i++;
        }

        cout << i << endl;
    }
    return 0;
}

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

int main(){
    int a, b;
    cin >> a >> b;
    int sum = a + b;

    int result;
    while (true) {
        sum = sum / 10;
        result++;
        if (sum == 0) {
            break;
        }
    }
    cout << result << endl;

    return 0;
}

C++: #include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
int n,a,b;
using namespace std;
int main(){
	std::ios::sync_with_stdio(false);
	while(cin>>a>>b){
		
		
		n=a+b;
		int counter=0;
		while(n){
			n=n/10;
			counter++;
		}
		cout<<counter;		
	}

	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

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

cout<<c<<endl;
}

C++: #include<stdio.h>                                                                  
                                                                                   
                                                                                   
int main(void){                                                                    
  int x,y,z,keta=0;                                                                
  scanf("%d %d",&x,&y);                                                            
  z =x+y;                                                                          
  while(z>0){                                                                      
    z = z/10;                                                                      
    keta++;                                                                        
  }                                                                                
  std::cout << keta << std::endl;                                                  
  return 0;                                                                        
}

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

int main()
{
	int i,j ;
	while( cin >> i >> j )
	{
		i += j ;
		int count = 0 ;

		while( i > 0 )
		{
			i = i / 10 ;
			count ++ ;
		}

		cout << count << "\n" ;
	}

	return 0 ;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77675555555555555555555555555555555555555455555555";
	
	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>
#include <string>

using namespace std;

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

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

template<class T>
T input()
{
	T val;
	std::cin >> val;
	return val;
}

int main()
{
	std::array<int, 200> hoge;
	for (int i = 0; i < 200; ++i)
		hoge[i] = input<int>() + input<int>();

	for (int i = 0; i < 200; ++i)
		std::cout << static_cast<int>(log10(hoge[i])) + 1 << std::endl;
	return 0;
}

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

using namespace std;

int main() {
    int a, b;
    char c[10];
    while (cin >> a >> b) {
        sprintf(c, "%d", a+b);
        int i = 0;
        while (c[i] != '\0') {
            ++i;
        }

        cout << i << endl;
    }

    return 0;
}