Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int
		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}
		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

C++: /*
    AOJ Volume0 0002

    Digit Number

    Write a program which computes the digit number of sum of two integers a and b.

    Input
        There are several test cases. 
        Each test case consists of two non-negative integers a and b 
        which are separeted by a space in a line. The input terminates with EOF.

    Constraints
        0 ≤ a, b ≤ 1,000,000
        The number of datasets ≤ 200

    Output
        Print the number of digits of a + b for each data set.

    Sample Input
        5 7
        1 99
        1000 999

    Output for the Sample Input
        2
        3
        4

*/

#include <iostream>


int digit_of(long long int value)
{
    int i = 1;
    while(value >= 10)
    {
        value /= 10;
        i += 1;
    }
    return i;
}


int main(void)
{
    while(true)
    {
        long long int a, b;
        if(std::cin >> a >> b)
        {
            std::cout << digit_of(a + b) << std::endl;
        }
        else
        {
            break;
        }
    }

    return 0;
}

C++: #include <iostream>

int main(){

  int A,B,C,k;

  while(std::cin >> A >> B){
    C = A + B;
    k = 0;
    while(C >= 1){
      C /= 10;
      ++k;
    }
    std::cout << k << std::endl;
  }
}

C++: #include <stdio.h>

int main() {
  
  int a,b,c,count;
  
  while(scanf("%d %d",&a,&b)!=EOF) {
    
    count=1;

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

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

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

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

int main(void){
	
	int a[200], b[200], i;
	string str = "";
	ostringstream ostr;
	
	for(i=0; (cin >> a[i]) != NULL; i++){
		cin >> b[i];
	  ostr << a[i] + b[i];
		str = ostr.str();
		cout << str.length() << endl;
	}
		
	return 0;
}

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

int main(){
	int a,b;
	cin>>a>>b;
	a+=b;
	string c=to_string(a);
	cout<<c.length()<<endl;
}

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

C++: #include<stdio.h>

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

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

C++: #include<cstdio>

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

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

int size = 200;

int main(void) {
    int a[size];
    int b[size];
    int sum;
    int i = 0;
    
    while(i < 200) {
        cin >> a[i];
        cin >> b[i];
        sum = a[i] + b[i];
        
        int check = 1;
        for(int i = 0; i < 7; ++i) {
            if(sum < check - 1) {
                cout << i << endl;
                break;
            }
            check *= 10;
        }
        i++;
    }
}

C++: #include<cstdio>

int main(){

	int a, b, sum=0, x;
	scanf("%d, %d", a, b);
	sum = a+b;

	if(sum<10) x=1;
	else if(10<=sum && sum<100) x=2;
	else if(100<=sum && sum<1000) x=3;
	else if(1000<=sum && sum<10000) x=4;
	else if(10000<=sum && sum<100000) x=5;
	else if(100000<=sum && sum<1000000) x=6;

	printf("%d",x);

	return 0;
}

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

int main(void) {
	int a=0,b=0,n=1;
	vector<int> r;
	while (scanf("%d %d",&a,&b) != EOF)
	{
		while ((a+b)>=pow(10,n))
		{
			n++;
		}
		r.push_back(n);
	}
	for (int i=0;i<r.size();i++)
	{
		cout << r[i] << endl;
	}
	return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int a, b, wa = 0, i;
		scanf("%d %d", &a, &b);
		wa = a + b;
		if (wa > 999999) {
			printf("7\n");
		}
		else if (wa > 99999) {
			printf("6\n");
		}
		else if (wa > 9999) {
			printf("5\n");
		}
		else if (wa > 999) {
			printf("4\n");
		}
		else if (wa > 99) {
			printf("3\n");
		}
		else if (wa > 9) {
			printf("2\n");
		}
		else {
			printf("1\n");
		}


	return 0;
}

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

#define ALL(a) a.begin(),a.end()

using namespace std;

int main()
{
  unsigned a = 1, b;

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

  return 0;
}

C++: #include<iostream>
using namespace std;
int main (){
	int a,b,gou,p,i,j,dame1,dame2;
	for(i=0;i<200;i++){
		p=0;
		gou=0;
		cin>>a>>b;
		gou=a+b;
		for(;;){
			if(gou>0&&(a<=1000000&&a>=0)&&(b<=1000000&&b>=0)){
				p++;
			}
			else {
				break;
			}
			gou=gou/10;
		}
		cout<<p<<endl;
	}
	return 0;
}

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

C++: include <stdio.h>
#define MAX 200

int main(void) {
        int i,count;
        int arr[3][MAX];
        int dig[MAX];

        // input                                                                
        for (i=0; ; i++) {
                if(scanf("%d %d", &arr[0][i], &arr[1][i]) == EOF) break;
                arr[2][i] = arr[0][i] + arr[1][i];
                count++;
        }

        // calc                                                                 
        for (i=0; i < count; ++i){
                while (1) {
                        arr[2][i] /= 10;
                        dig[i]++;
                        if(arr[2][i] == 0) break;
                }
        }


        //output                                                                
        for (i = 0; i < count; ++i)     {
                printf("%d\n", dig[i]);
        }

        return 0;
}

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

C++: #include<iostream>
using namespace std;
int main()
{
	int a, b, sum;

	{
		cin >> a >> b;
		sum = a + b;
		if (sum < 10)cout << "1" << endl;
		if (sum < 100 && sum >= 10)cout << "2" << endl;
		if (sum < 1000 && sum >= 100)cout << "3" << endl;
		if (sum < 10000 && sum >= 1000)cout << "4" << endl;
		if (sum < 100000 && sum >= 10000)cout << "5" << endl;
		if (sum < 1000000 && sum >= 100000)cout << "6" << endl;
		if (sum < 10000000 && sum >= 1000000)cout << "7" << endl;

	}
}

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

int main(){
	int sum,j;
	int i=0;
	int N =200;
	
	int a[N], b[N], dig[N];
	
	while(cin >> a[i] >> b[i]){
		dig[i]=1;
		if(0<=a[i] && a[i]<=1000000 && 0<=b[i] && b[i]<=1000000){
			sum = a[i]+b[i];
			while(sum/10 != 0){
				sum = sum/10;
				dig[i] += 1;
			}
			i++;
		}
	}
	
	for(j=0; j<i; j++){
		cout << dig[j] << "\n";
	}
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b;
    for(int i = 0; i<200; i++){
        cin >> a;
        cin >> b;
        cout << a+b << endl;
    }
}