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 <stdio.h>

int main(void)
{
	int a[3]={0},b[3]={0},sum[3]={0},keta[3]={0};
	int x,y;

	for(x=0;x<3;x++)
	{
		scanf("%d %d",&a[x],&b[x]);
		sum[x]=a[x]+b[x];
		printf("%d\n",sum[x]);
	}

	for(x=0;x<3;x++)
	{
		while(sum[x]!=0)
		{
			sum[x]=sum[x]/10;
			keta[x]++;
		}
		printf("%d\n",keta[x]);
	}

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="777";
	
	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<cmath>
using namespace std;

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

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

using namespace std;

int main()
{
	int a, b;
	
	cin >> a >> b;
	
	a = a + b;
	a = (int)log10(a);
	printf("%d\n",a+1);
	
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (scanf("%d %d", &a, &b)) {
        int sum = a + b;
        int cnt = 1;
        while (sum/10 != 0) {
            sum /= 10;
            cnt++;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

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

int main() {
	long a,b,c,ans;
	for(long i  = 0 ; i  <= 200; i++){
		cin >> a >> b;
		if(0 <= a  && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

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

int log10(int);
int main()
{
	while(1){
	int a,b,i;
	cin >> a >> b;
	cout << log10(a+b) << endl;
	}
	return 0;
}
int log10(int x)
{
	int i = 1;
	while(1){
		if(x/10 >= 1){
			i++;
			x = x / 10;
		}else{
			break;
		}
	}
	return i;
}

C++: #include<iostream>                                              
#include<cmath>                                                 
using namespace std;                                            
                                                                
int main(void) {                                                
  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,ans;
  while(cin >> a >> b)
    {
      a += b;
      for(ans = 0;a >= 10;ans++)
	{
	  a = a / 10;
	}
      cout << ans << endl;
    }

  return 0;
}

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

int main() {

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

	while (cin >> a >> b) {

		c = sprintf_s(e, "%d", a+b);

		cout << c << endl;
	}

	return 0;
}

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

int main()
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=2,i=0;

	while( cin >> a[i] >> b[i]){
		i++;
	}

	for(i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		cout << cnt << endl;
		cnt=0;
	}

	return 0;
}

C++: #include <iostream>

int main(void){
while (!std::cin.eof()){
int a,b,c,i;
std::cin >> a >> b;
c=a+b;

while(!(c/=10))
i++;

std::cout << i << std::endl;
}

C++: #include <iostream>


using namespace std;

int main(){
	int a;
	int b;
	

	for (int i = 0; i <= 201; i++){
		cin >> a >> b;
		int  c = a + b;
		if (c >= 0 && c < 10){
			cout << "1" << endl;
		}
		else if (c >= 10 && c < 100){
			cout << "2" << endl;
		}
		else if (c >= 100 && c < 1000){
			cout << "3" << endl;
		}
		else if (c >= 1000 && c < 10000){
			cout << "4" << endl;
		}
		else if (c >= 10000 && c < 100000){
			cout << "5" << endl;
		}
		else if (c >= 100000 && c < 1000000){
			cout << "6" << endl;
		}
		else if (c >= 1000000 && c < 10000000){
			cout << "7" << endl;
		}
	}
	
	return 0;
}

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

using namespace std;

int main()
{
	int a[200], b[200], n, ans[200], p = 0;
	for (int i = 0; i < 200; i++) 
	{
		cin >> a[i] >> b[i];
		ans[i] = 0;
		n = a[i] + b[i];
		while (n >= 1) 
		{
			n /= 10;
			ans[i]++;
		}
		p++;
	}
	for (int j = 0; j < p; j++) {
		cout << ans[j] << endl;
	}
}

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

int main(){
	cin.tie(0);
   	ios::sync_with_stdio(false);

   	int a,b,c,ans;

	while(cin >> a >> b){
   		c = a + b;
   		ans = (int)log10((double)c) + 1;
   		cout << ans << "\n";
	}
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <bitset>
#include <set>
#include <queue>

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

const float PI = 3.1415926;
static const int INFTY = (1<<30);

using namespace std;

typedef long long ll;
typedef long double ld;

ll n, a, b, res;

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

  return 0;
}

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

using namespace std;

int main(){
	int i,j,k,ans=0;

	
	while(cin >> i >>j ){
	k=i+j;
	while(k!=0){ k/=10; ans++;}
        cout << ans << endl;
		ans=0;

}
}

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

int get_digit(int num);

int main(){

	while (1){
		int a, b;
		cin >> a >> b;
		if (cin.eof()){
			break;
		}
		cout << get_digit(a + b) << endl;
	}

	return 0;
}

int get_digit(int num){

	if (num / 10 != 0){
		return 1 + get_digit(num / 10);
	}
	return 1;
}

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

int main(){

	int n,m;


	while(cin >> n){
		cin >> m;
		n+=m;
		cout << ((int)log10(n)+1) << endl;
	}
}

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

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

int main()
{
	std::vector<int> a;
	for (int i = 0; i < 200; ++i){
		a.push_back(input<int>() + input<int>());
		std::cout << static_cast<int>(log10(a[i])) << std::endl;
	}
	return 0;
}

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

int get_digit(int num);

int main() {
	int first;
	int second;
	int data_cnt = 0;
	std::vector<int> inputs;

	while ((cin >> first >> second) || (data_cnt < 200)) {
		data_cnt++;
		inputs.push_back(first + second);
	}

	for (int i = 0; i < data_cnt; i++) {
		cout << get_digit(inputs[i]) << endl;
	}

	return 0;
}

int get_digit(int num) {
	return std::to_string(num).length();
}

template < typename T > std::string to_string(const T& n)
{
	std::ostringstream stm;
	stm << n;
	return stm.str();
}