Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

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

using namespace std;

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

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

typedef long long ll;

int main(void)
{
    ll a , b;

    while(cin >> a >> b){

        a = a+b;

        b = 0;

        while(a!=0){
            b++;
            a/=10;
        }

        cout << b << endl;
    }

    return 0;

}

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

int main(){
const int INF=10000000;
int a,b,c,ans;
while(cin>>a>>b){
ans=1;
a+=b;
for(int i=0;i<INF;i++){
c=a%10;
a-=c;
if(a==0){break;}
if(a!=0){
ans++;
a/=10;}}
cout<<ans;}}

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


int main(){
    int a, b;

    while (scanf("%d%d", &a, &b) != EOF){
	int c = a + b;
	int digit = 1;
	while (c >= 10){
	    c = c / 10;
	    digit++;
	}
	cout << digit << endl;
    }
}

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

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

int main(){

  vector<long int> array1(6,0);
  vector<long int> array2(3,0);
  vector<int>      array3(3,1);

  for(int i = 0;i<6;i++){
    cin >> array1[i];
  }

  for(int i = 0; i < 3;i++){
    array2[i] = array1[2*i] + array1[2*i+1];
  }

  for(int i = 0; i < 3;i++){
    while(array2[i] / 10 != 0){

      array3[i]++;
      array2[i] /= 10;

    }
  }

  for(int i = 0; i < 3;i++){
    cout  << array3[i] << endl;
  }


    return 0;
}

C++: #include<iostream>
using namespace std;
 
int main(){
    int a,b,c,r;
    int n;
 
    while(cin>>a>>b){
        c=a+b;
        n =10;
        for(int i =0;i<6;i++){
            if(c%n == c){
                cout<<i+1<<endl;
                break;
            }
            n = n*10;
        }
    }
    return 0;
}

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

using namespace std;
int i,a,b;
string s;

int main() {
	while(cin>>a>>b){
		a = a+b;
		s = std::to_string(a);
		cout << s.size() << endl;
	}
	return 0;
}

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

using namespace std;

 string IntToString(int num){
	stringstream ss;
	ss << num;
	return ss.str();
}


int main(void){
	int count = 0;
	while (count < 200){
		int a, b;
		cin >> a >> b;
		if (((a < 0) || (b < 0)) || ((1000000 < a) || (1000000 < b))){
			break;
		}

		int sum = a + b;
		string str = IntToString(sum);
		cout << str.length() << endl;
		++count;
	}

	return 0;
}

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

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

int stoi(std::string);
std::string itos(int);

int main(){
    int sum,digits[200]={0};
    std::string input,output;


    std::ios::sync_with_stdio(false);

    input = "";
    for (int i=0;i<200;i++){
        sum = 0;

        for (int j=0;j<2;j++){
            if((int)std::cin.eof()) goto end;
            std::cin >> input;
            sum += stoi(input);
        }
        output = itos(sum);
        digits[i] = (int)output.length();
    }
    end:
    for (int i=0;digits[i];i++){
        std::cout << digits[i] << std::endl;
    }
}

int stoi(std::string s){
    std::stringstream ss;
    int i;
    ss << s;
    ss >> i;
    return i;
}

std::string itos(int i){
    std::stringstream ss;
    std::string str;
    ss << i;
    ss >> str;
    return str;
}

C++: #include <iostream>

int calc_digit_number(int n){
	int ret = 0;
	while(n > 0){
		ret++;
		n /= 10;
	}
	return ret;
}

int main(int argc, char **argv){
	int a = 0;
	int b = 0;

	while(std::cin >> a >> b){
		std::cout << calc_digit_number(a + b) << std::endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		cin >> n >> m;
		sum = n + m;
		//cout << sum << endl;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

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

int main() {
	int a, b, c, d;
	while (~scanf("%d%d", &a, &b)) {
		if (a == 0) c = 1;
		else c = log10((double)a) + 1;
		if (b == 0) d = 1;
		else d = log10((double)b) + 1;
		printf("%d\n", c + d);
	}
}

C++: #include<iostream>
int main(){
	int a,b,c,d;
	while(1){
		std::cin>>a>>b;
		if(std::cin.eof())break;
		c=a+b;
		     if(c>1000000)d=7;
		else if(c>100000)d=6;
		else if(c>10000)d=5;
		else if(c>1000)d=4;
		else if(c>100)d=3;
		else if(c>10)d=2;
		else if(c>1)d=1;
		std::cout<<d<<std::endl;
	}
	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>
using namespace std;

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

C++: /*
filename:Volume0-0002-Digit Number
last edited at 2015/8/15 by chariskim
*/

#include<iostream>

int main(){
	
	int a,b,c,x,i,m=10,n;
	std::cin >>a>>b;
	
	c=a+b;
	
	for (x=1; 1; x++){
		m=10;
		for (i=1; i<x; i++) m*=10;
		n=c/m;
		if(n==0)break;
		
	}
	
	std::cout<<x<<"\n"; 
	
	return 0;
}

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

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

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

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

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

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

using namespace std;

int main(void)
{

	for(int i = 0; i < 3; i++){
		int a, b;
		cin >> a >> b;
		a+=b;
		int d;
		for(d = 1; a > 0; d++){
			a /= 10;
		}
		cout << d;
	}

	return 0;
}

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

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

C++: import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(true)
		{
			a=cin.nextInt();
			b=cin.nextInt();
			if(a==0 && b==0) break;
		
			String s = ((Integer)(a+b)).toString();		
			System.out.println(s.length());
		}
	}
}