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 <vector>
#include <sstream>

using namespace std;

vector<string> split(const string &s, char delim) {
    vector<string> elems;
    stringstream ss(s);
    string item;
    while (getline(ss, item, delim)) {
        if (!item.empty()) {
            elems.push_back(item);
        }
    }
    return elems;
}

int digits(int num) {
    if (num < 10) return 1;
    int count = 1;
    num = num / 10;
    while(num != 0) {
        count++;
        num = num / 10;
    }
    return count;
}

int main() {

    string str;
    while(getline(cin, str)) {
        vector<string> splited = split(str, ' ');
        int a = stoi(splited[0].c_str());
        int b = stoi(splited[1].c_str());
        cout <<  to_string(digits(a + b)) << endl;
    }

    return 0;
}

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

int main() {
  long long int a, b;
  cin >> a >> b;
  long long int sum = a+b;
  //cout << sum << endl;
  

  int cnt = 1;
  while(sum /= 10) cnt++;

  cout << cnt << endl;
}

C++: #include<iostream>
#include<string>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	cout << to_string(a + b).length() << endl;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main() {
	unsigned int a, b, i = 0;
	while (scanf("%d %d",&a,&b)!=EOF){
		a += b;
	while (1) {
		if (a / 10 != 0) {
			a /= 10;
			i++;
		}
		else
			break;
	}
	cout << i + 1 << endl;
}
		return 0;
}

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

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

	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <iostream>
#include <vector>
#include <list>
#include <map>
#include<string>
#include <algorithm>
#include <functional>
#include <cmath>
using namespace std;
typedef vector <int> ivector;


int main(){
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF){
		int dat=log10(a + b);
		cout << dat+1 << endl;
	}
	

	return 0;
}

C++: #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  int a,b;
  while(cin >>a>>b && a!=EOF){
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=0,x;
  x=a+b;
  while(x>0){
  x/=10;
  count++;
}
  return count;}

C++: #include<iostream>
using namespace std;
int main() {
	int a, b, ans[300], i, z;
	z = 0;
	while (cin >> a >> b) {
		z++;
		a = a + b;
		b = 0;
		while (a != 0) {
			a = a / 10;
			b++;
		}
		ans[z] = b;
	}
	for (i = 1; i <= z; i++) {
		cout << ans[i] << endl;
	}
}

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

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

    return 0;
}

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    while(!cin.eof()){
        int a,b,r;
        cin>>a>>b;
        r=log10(a+b)+1;
        cout<<r<<endl;
    }
    return 0;
}

C++: input = raw_input()
splited = input.split()
num = int(splited[0])+int(splited[1])
print len(str(num))

C++: #include <stdio.h>

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

  while(scanf("%d %d", a, b)!=0){
    sum=a+b;
    count=1;
    while(sum/10!=0) count++;
    printf("%d\n", count);
  }
  return 0;
}

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

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

C++: #include<cstdio>
int main(void){
int a,b,i,s;
while(scanf("%d",&a)!=EOF){
 scanf("%d",&b);
 s=a+b;
 for(i=0;s>0;i++){
  s/=10;
 }
 printf("%d\n",i);
}
return 0;
}

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

int main() {
  int a, b;
  stringstream ss;
  while (cin >> a >> b) {
    ss << a + b;
    cout << ss.str().size() << endl;
  }
  return 0;
}

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

int digit(long long x){
  int i=1;
  while(true){
    x/=10;
    if(x==0)break;
    i++;
  }
  return i;
}

int main(){
  long long  a, b;
  while(true){
    scanf("%lld %lld", &a, &b);
    printf("%d\n", digit(a+b));
  }
  return 0;
}

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

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

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

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

#define times(n, i) uptil(0, n, i)
#define upto(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f) poi i <= _##i poi i++)
#define uptil(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f) poi i < _##i poi i++)
#define downto(f, t, i) for(auto i = (f), _##i = decltype(i)(t) poi i >= _##i poi i--)
#define downtil(f, t, i) for(auto i = (f), _##i = decltype(i)(t) poi i > _##i poi i--)

#define unless(c) if(!(c))
#define until(c) while(!(c))
#define loop while(true)

#define poi ;
#define poipoi << "\n"

using namespace std;

int main(){
    until(cin.eof()){
        int a, b poi
        cin >> a >> b poi
        int sum = a + b, i = 0 poi
        while(sum){
            sum /= 10 poi
            i++ poi
        }
        cout << i poipoi poi
    }
    return 0 poi
}

C++: #include<iostream>

using namespace std;

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

C++: #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  int a,b;
  for(int i=0;i<200;i++){
    cin >>a>>b;
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=1,x;
  x=a+b;
  while(1){
    if(x/10<1)break;
  x/=10;
  count++;
}
  return count;}

C++: #include<iostream>
using namespace std;
 
void digitLength()
{
    int a,b;
    int len = 1;
    int div;
    
    cin>>a;
    cin>>b;
    
    int var = a+b;
    
    while(1)
    {
        div = var / 10;
        
        if(div == 0)
            break;
        var = div;
        len++;
        
    }
    
    cout<<len;
    return;
}
 
 
int main(){
 
    digitLength();
    return 0;
}

C++: #include <iostream>
#include <string>
#include <stack>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <vector>

using namespace std;





int main()
{
	int a, b,c;
	while (cin >> a) {
		cin >> b;
		c = log10(a + b)+1;
		cout << c << endl;
	}

		





}

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    while(!cin.eof()){
        int a,b;
        cin>>a>>b;
        cout<<(int)log10(a+b)<<endl;
    }
    return 0;
}

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

using namespace std;
int main(){
	int a,b;
	while(!cin.eof()){
		cin >> a >> b;
		cout << int(log10(a+b))+1 << endl;
	}
	return 0;
}

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

int main() {

	int a, b, c,d;
	char e[100];

		cin >> a >> b;

		c=a+b;

		d = sprintf_s(e,"%d", c);

	cout << d << endl;

	return 0;
}