Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

C++: #include<iostream>
using namespace std;
int main(){
long i,j,a,b,c;
for(i=0;i<200;i++){
cin>>a>>b;
if(cin.eof())break;
c=a+b;
for(j=0;j<6;j++){c/=10;if(c==0)break;}
cout<<j+1<<endl;
}
return 0;
}