Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

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;
}