Go: package main

import (
	"bufio"
	"fmt"
	"math"
	"os"
	"strconv"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

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

int log(int a, int X){
	int n = 0;
	
	while(X > 0){
		X /= a;
		n++;
	}
	
	return n;
}

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

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

int main(void){
	int a,b,T,c,d,e,f,g,h,i,A=0;
	while(cin>>a>>b){
		T=a+b;
		
		c=T/1000000;
		if(c>=1) A=A+1;
		
		d=T/100000;
		if(d>=1)A=A+1;
		
		e=T/10000;
		if(e>=1)A=A+1;
		
		f=T/1000;
		if(f>=1)A=A+1;
		
		g=T/100;
		if(f>=1)A=A+1;
		
		h=T/10;
		if(h>=1)A=A+1;
		
		i=T/1;
		if(i>=1)A=A+1;
		
		cout<<A<<endl;
	}
	return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>

#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

int main(void){
    
    int number1,number2;
    int counter = 0;
    while (counter != 200)
    {
        cin >> number1 >> number2;
        cout << (((number1+number2) /10))+1;
        counter ++;
    }
    return 0;


}

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

using namespace std;

int main()
{
	int deta;
	int deta2;
	int a, total;

	while (scanf ("%d %d", &deta, &deta2) != EOF){
		a = deta + deta2;
		total = 0;

		while (1){
			if (a < 10){
				total++;
				break;
			}
			else {
				a = a / 10;
				total++;
			}
		}
		printf("%d\n", total);
	}

	return 0;
}

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

int main() {
  int x, y;
  while(true) {
    cin >> x;
    if(x == -1) {
      break;
    }
    cin >> y;
    cout << x + y << endl;
  }
}

C++: #include <iostream>

using namespace std;

int get_digit(int val)
{
    int res = 0;
    while (val > 0) {
	val /= 10;
	res++;
    }
    return res;
}

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

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,sum=0,count=0;
    while(cin>>a>>b)
    {
        sum=a+b;
       while(sum>0)
       {
         sum/=10;
            count++;
       }
       cout<<count<<endl;
       count=0;
    }
    return 0;
}

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

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

int main()
{
	int a, b, c, su = 1000000, i = 1;
		
		while (a != -1 && b != -1 && i<=200) {
			cin >> a >> b;
			c = a + b;
			if (c == 0) {
				cout << "0" << endl;
			}
			else {
				for (int j = 7; j >= 1; j--) {
					if (c >= su) {
						cout << j << endl;
						su = 1000000;
						break;
					}
					else {
						su /= 10;
					}
				}
			}
			i++;
		}

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77675555555555555555555555555555555555555";
	
	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>
 
u_int getDigit(u_int n){
    u_int digit = 0;
     
    while(n > 0){
        n /= 10;
        ++digit;
    }
     
    return digit;
}
   
int main(){
    u_int a, b;
     
    while(std::cin >> a >> b){
        std::cout << getDigit(a + b) << std::endl;
    }
     
    return 0;
}

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


using namespace std;

int main()
{
	unsigned int a, b;
	string sa,sb;
	while (1)
	{
		if (cin.eof())
			break;
		
		cin >> a >> b;
		
		stringstream ss;
		ss << (a + b);
		cout << ss.str().size() << endl;
	}
	return 0;
}

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

using namespace std;

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

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

int digits(int n){
  int res=0;
  while(n){
    n = n/10;
    res++;
  }
  return res;
}

int main(){
  int x,y;
  while(cin >> x >> y && x != EOF){
    cout << digits(x+y) << endl;
  }
  return 0;
}

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

C++: #include<math.h>
#include<iostream>
#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)
#define INF (1<<30)

using namespace std;


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

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

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

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

int main()
{
	int hills[10];
	rep(10) cin>>hills[i];

	sort( hills, hills+10, greater<int>() );

	rep(3) cout<<hills[i]<<endl;

	return 0;
}

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

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

using namespace std;

int main()
{
	int a, b;

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

	return 0;
}

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

int main()
{
 int a, b;

 while(cin >> a >> b){
  int mas = a + b;
  int n = 0
  while(true){
   n++;
   mas /= 10;

   if(mas == 0) break;
  }
  cout << n << '\n';
 }

 return 0;
}

C++: #include <math.h>
#include <iostream>
#include <algorithm>
#include <functional>
#include <string>


using namespace std;

int main(void)
{
	int a, b;

	while (cin >> a >> b, !cin.eof())
	{
		int sum = to_string(a+b).length();


		cout << sum << endl;
	}

	return 0;
}

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

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

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

	}
	return 0;
}

C++: #include <iostream>

int main(){

  int a[200];
  int b[200];

  int i=0;

  while(std::cin >> a[i]){
    std::cin >> b[i];
    ++i;
  }
  int k;

  for(int j=0;j<i;j++){
    a[j] += b[j];
    k=0;
    do{
      a[j] %= 10;
      ++k;
    }while(a[j]!=0);

    std::cout << k << std::endl;
  }
}