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 m;
  int m1=0,m2=0,m3=0;
  for(int i=0;i<10i++){
    cin << m << endl;
    if(m1>m){
      m3 = m2;     
      m2 = m1;     
      m1 = m;
    }
    else if(m2>m){
      m3 = m2;   
      m2 = m;
    }
    else if(m3>m){
      m3 = m;
    }
  }
  cout << m1 << endl << m2 << endl << m3 <<endl;
  return 0;
}

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

int check_digit(int num) {
  int digit = 0;
  while (true) {
    num /= 10;
    digit++;
    if (num <= 0) {
      break;
    }
  }
  return digit;
}

int digit_count(int a, int b) {
  int digit;
  digit = check_digit(a + b);
  return digit;
}

int main(int argc, char const *argv[]) {
  int a, b;
  list<int> ls;
  while (!(std::cin >> a >> b).eof()) {
    ls.push_back(digit_count(a, b));
  }

  list<int>::iterator it = ls.begin();
  while (it != ls.end()) {
    cout << *it << endl;
    it++;
  }
}

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

int main(){
    int a,b,c,i;
	for(int j=0;j<250;j++){
		cin >> a >> b;
		if(a==0 && b==0)break;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << endl;
	}

    
    return 0;
}

C++: #include <iostream>
int main(){
	int a,b,c;
	std::cin>>a>>b>>c;
	if(a*a==b*b+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(b*b==a*a+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(c*c==a*a+b*b){
		std::cout<<"YES"<<std::endl;
		}
	else std::cout<<"NO"<<std::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;
    
        cin >> number1 >> number2;
        cout << (((number1+number2) /10))+1 << endl;

    return 0;


}

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

C++: #include "bits/stdc++.h"

using namespace std;

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

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

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

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

int main()
{
	for (int i = 0; i < 200; ++i){
		int hoge = input<int>() + input<int>();
		std::cout << static_cast<int>(log10(hoge)) + 1 << std::endl;
	}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
using namespace std;
int main()
{
    int n,m;
    while(cin>>n>>m)
    {
        int i=n+m;
        int d=0;
        while(i>0)
        {
            i/=10;
            d++;
        }
        cout<<d<<endl;
    }
    return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int main(){
  int a,b,ans=0;
  while(scanf("%d",&a)!=EOF){
    a = 0;b = 0;
    cin >> b;
    a += b;
    while(a >= 1){
      a /= 10;
      ans++;
    }
    cout << ans << endl;
  }
}

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

int main()
{
    int a,b,sum;
    string s;
    while(scanf("%d%d",&a,&b)!=EOF){
        s=to_string(a+b);
        cout << s.size() << endl;
    }
    return 0;
}

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

C++: import java.util.*;

class Main{
    public static void main(String[] args){
    	Scanner scn = new Scanner(System.in);
    	int a,b;
    	
    	for(;;){
    		a = scn.nextInt();
    		b = scn.nextInt();
    		
    		int i = a + b;
    		int count = 1;
    		
    		for(; i>=10;i/=10,count++);
    		
    		System.out.println(count);
    		
    	}
    }
}

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

using namespace std;

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

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

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

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

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

return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int a,b;
	for(int i =0;i < 200;i++)
	{
		cin >> a >> b;
		a += b;
		int count = 0;
		while(true)
		{
			count++;
			if(a / 10 == 0)
			{
				break;
			}
			a = a / 10;
		}
		cout << count << endl;
		a = b = count = 0;
	}
}

C++: #include <stdio.h>

using namespace std;


int main(){
	int a,b,count,s;

	while(scanf("%d %d",&a,&b)!=EOF){
		count=0;
		s=a+b;
		while(s!=0){
			s/=10;
			count++;
		}
		printf("%d\n",count);
	}

    return 0;
}

C++: #include<iostream>
using namespace std;
class DigitNumber{ 
    public:
        void solve(int a,int b){
            string sum=to_string(a+b);
            if(sum=="0")cout<<0<<endl;
            else cout<<sum.length()<<endl;
        }
};
int main(){
    DigitNumber inst;
    int a,b;
    while(cin>>a>>b){ 
        inst.solve(a,b);
    }
}

C++: //http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp
#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>

using namespace std;

void digit(int a, int b){
	int counter = 1;
	int c = a+b;
	while(c/10 > 0){
		counter++;
		c /= 10;
	}
	cout << counter << endl;
	return;
}


int main(){
	int a,b;
	while(cin >> a >> b){
		digit(a,b);
	}
	return 0;
}

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

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

#define     MAX_NUMBER     200

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int k,i;

	for(k=1;k<=MAX_NUMBER;k++){
		// 値の入力
		cin >> num1 >> num2;
		
		//整形
		sprintf(str,"%d\0",(num1 + num2));

		// 文字数計測
		for(i=0;str[i] != '\0';i++){
		}

		// 文字数表示
		cout << i << endl;
	}

	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	int a, b, c, i;
	int number = 1;

	cin >> a >> b;
	c = a+b;

	for(i=0; i++){
		if(c/10 != 0){
			number = number + 1;
		}
		else{
			break;
		}

		cout << number << endl;
	}
}

C++: #include <cstdio>

int main() {
	int a, b;
	char temp[100];

	while (scanf("%d %d", &a, &b) != EOF) {
		printf("%d\n", sprintf(temp, "%d", a + b));
	}

	return 0;
}