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<cmath>
using namespace std;
 
int main(){
    int a,b;
    while(cin>>a>>b){
        a=log10(a+b)+1;
        cout<<a<<endl;
    }
    return 0;
}

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

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

C++: #include <stdio.h>

using namespace std;

int main(){
	int a, b;

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

	return 0;
}

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

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

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

int main(void)
{
    while (1)
    {
        int a, b;
        cin >> a >> b;
        if (cin.eof())
            break;
        stringstream ss;
        ss << a + b;
        cout << ss.str().length() << endl;
    }
    return 0;
}

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

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int a, b;
    while (cin >> a >> b) {
        cout << floor(log10(a + b)) + 1 << endl;
    }
    return 0;
}

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

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



int main()
{
    int a,b;
    int i=0;
    while(scanf("%d",&a)!=EOF||i<50){
        cin >> b;
        cout << (int)log10(a+b)+1 << endl;
        i++;
    }
    return 0;
}

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

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

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

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=8650;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <iomanip>
#include <algorithm>
#include <cmath>
using namespace std;
const int M = 100000;
const double pi = 3.141592653589;

int main()
{
	int a, b;
	cin >> a >> b;
	a = a + b;
	int count = 0;
	while (a > 0) {
		a /= 10;
		count++;
	}
	printf("%d\n", count);
}

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

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


}

C++: #include<stdio.h>
int main(){
	long int x,y,i;
	for(i=0;i<200;i++){
	scanf("%ld %ld",&x,&y);
	if((x+y)<10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else if((x+y)<1000000)printf("6\n");
	else printf("7\n");
	}
	return 0;
}

C++: #include <iostream>

int main()
{
    while(1) {
        double a,b;

        std::cin >> a;
        std::cin >> b;

        if (std::cin.eof()) {
            break;
        }

        double c = a + b;
        int ans = 1;
        bool flag = false;

        while(!flag) {
            if (c / 10 >= 1) {
                c/= 10;
                ans += 1;
            } else {
                flag = true;
            }
        }

        std::cout << ans << std::endl;
    }

    return 0;

}

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

#define rep(x,to) for(x=0;x<to;x++)
#define rep2(x,from,to) for(x=from;x<to;x++)

using namespace std;


int main(void){

int a, b, c;

	cin >> a >>b;
	c = a + b;
	int k=0;
	while (c > 0){
		k++;
		c /=10;	
	}
//	if(k==0) k=1;
	cout << k << endl;
	return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
	
	int i;

	int a,b,sum,figure;

	while(cin >> a >> b){
		sum = a + b;
		figure = 1;
		while(sum/10!=0){
			sum = sum/10;
			figure++;
		}
		cout << figure << "\n";
	}	
	return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	int a, b;
	while(cin >> a >> b){
		int c = log10((double)a + b) + 1;
		cout << c << endl;
	}
	return(0);
}

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755555555555555555555555555555555555554555";
	
	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
//-------------
#include <map>
#include <list>
#include <cmath>
#include <vector>
#include <string>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
//-------------
//typedef
//-------------
typedef long long LL;
typedef  vector<int> VI;
typedef  pair<int, int> PII;
typedef  vector<int, int> VII;
typedef  map<string, int> MSI;
//-------------
//utillty
//-------------
#define ALL(a)  (a).begin(),(a).end()
#define MK make_pair
#define PB push_back
#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 COUT(a) cout<<a<<endl
//-------------
//repetition
//-------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
//-------------
//debug
//-------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define dumpl(c) REP(i,SZ(c))cerr<<#c<<i<<"="<<(c[i])<<endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

const int MOD = 1000000007;
int main()
{
	int a, b,c;
	while (cin >> a>>c >> b)
	{
		COUT(to_string(a + b).length());
	}
#ifdef _DEBUG
	while(1);
#endif // _DEBUG

	return 0;
}

C++: #include <stdio.h>
#include<iostream>
#include<math.h>
int uncoo(int n){
 return (int)(logf((float)n)/logf(10.0))+1;
}
int main(){
	using namespace std;
	int unco[200],temp,i;
	for(i=0;i<200;i++){
		if(cin.eof())break;
		cin>>unco[i];
		cin>>temp;
		unco[i]+=temp;
	}
	for(int j=0;j<=i;j++){
		cout<<uncoo(unco[j])<<endl;
	}
	return 0;
}

C++: #include <iostream>

int main(int argc, char **argv) {
	int a, b, sum, digit;
	
	while(std::cin) {
		std::cin >> a >> b;
		sum = a + b;
		
		digit = 0;
		while(sum != 0) {
			sum /= 10;
			digit += 1;
		}
		std::cout << digit << std::endl;
	}
}