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>
using namespace std;

int main(){
	int a,b;

	//while(1){
		//a = 0;
		cin >> a >> b;
		//if(a == 0)break;

		int tag = (a+b)/1000000;
		int keta = 7;
		if(tag==0){
			tag = (a+b)/100000;
			keta = 6;
		}
		if(tag==0){
			tag = (a+b)/10000;
			keta = 5;
		}
		if(tag==0){
			tag = (a+b)/1000;
			keta = 4;
		}
		if(tag==0){
			tag = (a+b)/100;
			keta = 3;
		}
		if(tag==0){
			tag = (a+b)/10;
			keta = 2;
		}
		if(tag==0){
			tag = (a+b)/1;
			keta = 1;
		}


		cout << keta << endl;
	//}
	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555547";
	
	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<stdio.h>
int main(){
    int a,b,c=1;
    while(scanf("%d %d",&a,&b)!=EOF){
        c=0;
        for(int i=1;i<1000001;i=i*10){
            if((a+b)/i==0){
                break;
            }
            c++;
        }
        printf("%d\n",c);
    }
    return 0;
}

C++: #include <iostream>

int main(){
  int a, b, c;
  int i = 1;
  int num = 0;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

C++: #include<iostream>
#include<string>
int main() {
	int data1,data2,i;
	char a[100];
	while (1) {
		std::cin >> data1 >> data2;
		if (data1==EOF) break;
		data1 += data2;
		std::string aa = std::to_string(data1);
		for (i = 0; aa[i] != '\0'; i++) {

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

C++: #include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int count = 1;

	scanf("%d %d", &a[0], &a[1]);
	
	i = a[0] + a[1];
	count = 0;
	while(i > 0){
		count++;
		i = i/10;
	}

	printf("%d\n", count);
	
	return 0;
	
}

C++: #include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <list>
#include <cmath>
#include <fstream>
#include <queue>
#include <sstream>
#include <algorithm>
#include <cstring>
using namespace std;

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

C++: #include<iostream>
using namespace std;
int main()
{
int a,b,c;
while(cin>>a>>b)
{int k=0;
 c=a+b;

 while(c!=0) 
 {
 c=c/10;
 k++;

 }

 cout<<k<<endl;

}

return 0;

}

C++: #include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a,b;
	cin >> a>>b;
string stream ss;
  ss << a+b;
   string x=ss.str();
cout<<x.size()<<endl;
return 0;
}

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;
		while (1) {
			if (sum <= 0) break;
			sum /= 10;
			++cou;
		}
		printf("%d\n", cou);
		cou = 0;
	}
}

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

using namespace std;

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

	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
    int n1,n2,count,check;

    while(1){
        cin >> n1 >> n2;
        if(cin.eof()){
            break;
        }
        count = 1;
        check = n1 + n2;
        while(1){
            check /= 10;
            if(check == 0){
                cout << count << endl;
                break;
            }
            else {
                count++;
            }
        }
    }

    return 0;
}

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

int main()
{
  int a, b;
  int cou;
  int i, j;
  int ten;

  for (i = 0; i < 200; i++){
    cou = 1;
    ten = 10;
    cin >> a >> b;
    a += b;
    for (j = 1; j <= 7; j++){
      if (a / ten > 0){
        cou++;
        ten  *= 10;
      }
    }
    cout << cou << "\n";
  }

  return (0);
}

C++: //
//  main.cpp
//  Sample
//
//  Created by h3037183 on 2017/07/31.
//  Copyright ?? 2017??´ ?°????. All rights reserved.
//

#include <iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int main(){
    int a,b,e=1;
    while(cin>>a>>b){
        if(a<0 && b<0)break;
        if(a>1000000 && b>1000000)break;
        for(int z=10;z<1000000;z=z*10){
        if(a+b>=z){
            e++;
        }
    }
         cout<<e<<endl;
            e=1;
    }
    return 0;
}

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

int calcDigits(int n){
	if(n < 10)
		return 1;
	return 1+ calcDigits(n/10);
}

int main(){
	int a, b;
	while(cin >> a >> b){
		cout << calcDigits(a+b) << endl;
	}
}

C++: /*
??????????????????????????´??° a ??¨ b ??????????????°???????????????????????°?????????????????????????????????
???????????????????????° <= 200
*/

#include <iostream>
#include <string>

using namespace std;
 
int main()
{

	int a, b, calc, strCount = 0;
	string str = "";

	for ( int i = 0; i < 200;  i++ ) {
		a = b = 0;
		
		cin >> a >> b;

		if ( a == 0 && b == 0 ) {
			break;
		}

		calc = a + b;
		str = to_string( calc );
		strCount = str.size();
		
		cout << strCount << endl;
	}

    return 0;
}

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

int main()
{
	long long int m,n;
	int i;
	while(scanf("%lld %lld",&m,&n != EOF))
	{
		m += n;
		i = 0;
		while(m)
		{
			i++;
			m /= 10;
		}
		printf("%d\n",i);
	}
}

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

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

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

using namespace std;

int main()
{
	int a, int b;

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

	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
  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(){
	// input
	int a, b, total, ans;
	while(cin >> a >> b, !(cin.eof())){
		total = a + b;
		while(true){
			total /= 10;
			ans++;
			if(total == 0){
				break;
			}
		}
		cout << ans << endl;
	}

	return 0;
}

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

int main()
{
	double a,b;
	double total,keta;
	int iketa;

	while(scanf("%lf %lf",&a,&b) != EOF){
		total = a + b;
		keta = log10(total);
		keta = keta + 1;
		printf("%d\n",(int)keta);
	}

	return 0;
}

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

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

C++: #include <stdio.h>

int main(){

	int a=0,b=0,i=0;

	while (scanf("%d%d", &a, &b) != EOF){
		
		if (a + b < 1000000){
			printf("6\n");
		}else if(a + b < 100000){
			printf("5\n");
		}else if (a + b < 10000){
			printf("4\n");
		}else if (a + b < 1000){
			printf("3\n");
		}else if (a + b < 100){
			printf("2\n"); 
		}else if (a + b < 10){
			printf("1\n");
		}i++;
	}
	return 0;
}