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<stdio.h>
#include<string.h>
using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		char s[7];
		sprintf(s, "%d", a + b);
		cout << strlen(s) << endl;
	}


	return 0;
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
typedef long long int ll;
using namespace std;

int digit(int n){
	int cnt=0;
	while(n>0){
		cnt++;
		n/=10;
	}
	return cnt;
}
int main(){
	int a,b;
	while(scanf("%d%d",&a,&b)!=EOF){
		cout << digit(a+b) << endl;
	}
	return 0;
}

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

int main()
{
	int a,b,c;
	stringstream s;
	while(cin >> a >> b)
	{
	c = a+b;

	s << c;
	cout << s.str().size() << endl;
	}
	return 0;
}

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

int hoge(int sum,int cnt){
	if(sum/10<=9) return cnt;
	else return hoge(sum/10,++cnt);
}

int main(){
	for(int i=0;i<3;i++){
		int a,b;
		cin>>a>>b;
		if(a+b<10) cout<<1<<endl;
		else cout<<hoge(a+b,2)<<endl;
	}
	return 0;
}

C++: #include<cstdio>
#include <vector>
#include <algorithm>
#include <functional>

#include <cstdlib>
#include <iostream>
#include <string>
#include <typeinfo>
using namespace std;

int GetDigit(int num);

int main(){
	std::vector<int> r;
	while(true) {
		int nums[2];

		string str;
		int a =0;
		getline(cin, str); 
		string n[2];
		int nn[2];
		for(int i=0; i<str.size(); ++i){
			if(str[i] == ' ') a++;
			n[a] += str[i];
		}
		if(n[1].size() == 0) break;
		nn[0] = std::stoi(n[0]);
		nn[1] = std::stoi(n[1]);


		r.push_back(nn[0]+nn[1]);
	}

	for(int i=0; i<r.size(); ++i) {
		printf("%d\n", GetDigit(r[i]));
	}
	

	return 0;
}

int GetDigit(int num){
    int digit=0;
    while(num!=0){
        num /= 10;
        ++digit;
    }
    return digit;
}

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		if (sum != 0){
			++cou;
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++cou;
			}
		}
		printf("%d\n", cou);
		cou = 0;
	}
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

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

int main(){
  int a, b, sum;
  int res = 0;

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

  return 0;
}

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


using namespace std;

int main() 
{
	
	int a,b;
	string input;
	int size[200];
	int i = 0;
	int count = 0;	
	//cout << "input two numbers" << endl;
	for(i=0;i<200;i++){
	cin >> a >> b;
	//if(a==""){break;}
	b += a;
	input = to_string(b);
	size[i] = input.size();	
	count++;
}
for(i=0;i < count;i++){
	cout << size[i] << endl;
}

}

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

	int main()
	{
	
		int a,b,c[3];
		char str[16];
		for(int i=0;i<3;++i){
			cin >> a >>b;

			c[i] = sprintf(str,"%d",a + b);
		}
		for(int i=0;i<3;++i)
			cout << c[i] << endl;
		return 0;
	}

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

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

C++: #include <iostream>
#include <math.h>
#include <algorithm>
using namespace std;

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

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

int main()
{
	int x, y;
	while (cin >> x >> y)
		cout << x + y << "\n";
	cout.flush();
}

C++: #include <iostream>
#include <string>
using namespace std;
int main()
{
	int a, b;
	while (1){
		cin >> a;
		if (a < 0){
			break;
		}
		cin >> b;
		auto sum = a + b;
		string str(to_string(sum));
		cout << str.size();
	}

}

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

typedef long long ll;
typedef pair<ll, ll> P;

#define pb push_back
#define rep(i, n) for(int i = 0; i < (n); i++)
#define dep(i, a, n) for(int i = a; i >= (n); i--)
#define FOR(i, a, n) for(int i = a; i < (n); i++)
#define mod (ll)(1e9+7)
#define int ll
#define INF 100000000

__attribute__((constructor))
void initial() {
  cin.tie(0);
  ios::sync_with_stdio(false);
}

signed main() {
	ll a, b;
  while(cin >> a >> b) {
    cout << to_string(a + b).size() << endl;
  }
	return 0;
}

C++: #include <iostream> 
#include <math.h> 
#include <iomanip> 
using namespace std;  
  
int main()  
{  
int input1,input2,sum,i;
cin >> input1 >> input2;
int a=input1;
int b=input2;
int c=0;
for(i=1;i<=1;i++)
{sum=input1+input2;
for(int i=1;sum!=0;i++)
{sum=sum/10;
c=c+1;}
cout << c << endl;
c=0;
}
for(int i=1;i<=1000;i++)
{cin >> input1 >> input2;
if(a==input1 && b==input2)
{break;}
sum=input1+input2;
for(i=1;sum!=0;i++)
{sum=sum/10;
c=c+1;}
cout << c << endl;
a=input1;
b=input2;
c=0;
}
}

C++: #include<iostream>
using namespace std;
int main (){
    int a[1000000],b[1000000];
    for(int i=0;i<200;i++){
        cin>>a[i]>>b[i];
        if(a[i]+b[i]<10){
        cout<<"1"<<endl;
        }
        else if(a[i]+b[i]<100){
        cout<<"2"<<endl;
        }
        else if(a[i]+b[i]<1000){
            cout<<"3"<<endl;
        }
        else if(a[i]+b[i]<10000){
            cout<<"4"<<endl;
        }
        else if(a[i]+b[i]<100000){
            cout<<"5"<<endl;
        }
        else if(a[i]+b[i]<1000000){
            cout<<"6"<<endl;
        }
        else if(a[i]+b[i]<10000000){
            cout<<"7"<<endl;
        }
    }
    return 0;
}

C++: #include<stdio.h>
#include<math.h>
int array[100];
int counter(long long int a,long long int b);
int main()
{
    long long int a,b;
    int count;
    while(scanf("%lld %lld",&a,&b)==2)
    {
        count=counter(a,b);
        printf("%d\n",count);
    }
    return(0);
}
int counter(long long int a,long long int b)
{
    long long int number;
    int x,count=0;
    number=a+b;
    if(number==0)
    {
        count=1;
        return(count);
    }
    else
    {

        while(number!=0)
        {
            count++;
            number=number/10;
        }
        return(count);
    }
}

C++: import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?"YES":"NO");}}}

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

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

C++: #include <iostream>

using namespace std;

int getDigitNumber(int n){
  return n > 0 ? 1 + getDigitNumber(n / 10) : 0;
}

int main(int argc, char const *argv[]) {
  int c = 200;
  while(c--){
    int a,b;
    cin >> a >> b;
    cout << getDigitNumber(a+b) << endl;
  }
  return 0;
}

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

int main()
{
	double a,b;
	while(std::cin>>a>>b)
	{
		int digit=(int)std::log10(a+b);
		std::cout << digit+1 << std::endl;
	}
	return 0;
}