Go: package main

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

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

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

int digits(unsigned long p){
    if(p == 0) return 1;
    return (int)(log10l(p) + 1);
}

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755555555555555555555555555555555555554555555555555555555555555555555555555555555555555";
	
	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 <bits/stdc++.h>

using namespace std;

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

C++: #include <iostream>

int main(){
	int a, b ,i ,n ;
	while(std::cin>>a>>b){
	i=1;
	for(n=1;a+b>=i*10;n++){
	i=i*10;
	}
	std::cout<<n<<std::endl;
}
return 0;
}

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

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

int main() {
    int a, b;

    while (cin >> a) {
        cin >> b;
        string sum = to_string(a + b);
        cout << sum.length() << endl;
    }

    return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <string>
using namespace std;
int main()
{
    int f,s;
    while (cin >> f >> s)
    {
        cout << to_string(f+s).length() << endl;
    }
}

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;
scanf("%d",&x);scanf("%d",&y);
w=x+y;printf("%d",w);
while(1)
{
if(w/10==0){cou++;break;}
else {w=w/10; cou++;}
}
printf("%d\n",cou);
return 0;
}

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

using namespace std;

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

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

C++: #include<iostream>

using namespace std;

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

C++: #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <climits>
#include <cfloat>
using namespace std;

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

C++: 
//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp

#include <algorithm>
#include <iostream>
#include <vector>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

using namespace std;

//テ」ツδ榲」ツつッテ」ツδュテ・ツョツ堙ァツセツゥ
#define ALL(v) (v).begin(),(v).end()
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
#define REP(i,a,b) for(int i=(int)(a); i<(int)(b); ++i)
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define SORT(x) sort(begin(x),end(x))
#define SELECT_SORT(x, n) sort(begin(x),begin(x)+n)
#define SWAP(type, a, b) do {type tmp = a; a = b; b = tmp;} while (0)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))

//テ・ツョツ堙ヲツ閉ー
#define INF 2000000000000
#define MAX 10

//DEBUGテァツ板ィ
#define BAR() cout << "----------------------------" << endl;
#define DUMP(v) (cerr << #v << ": " << v << endl)
#define PRINT(list) cout << "{ "; for(auto nth : list){ cout << nth << " "; } cout << "}" << endl;


int main()
{
	int a=0;
	int b=0;
	while(cin >> a >> b)
	{
		int total = a + b;
		
		int i;
		if(total == 0){
			cout << i << endl;
		}else{
			for(i = 0; total != 0; i++){ total /= 10; }
			cout << i << endl;
		}
	}
	
}

C++: #include <iostream>

using namespace std;

int main()
{
	int a, b;

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

C++: #include<iostream>
using namespace std;
int main()
{
	while (true)
	{
		int a, b;
		cin >> a >> b;
		if (cin.fail())
			break;
		int cnt = 0;
		int x = a + b;
		do {
			x /= 10;
			cnt++;
		} while (x);
		cout << cnt << endl;
	}
}

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

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

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

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

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

using namespace std;

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

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

string sum(string s, string t){
    reverse(s.begin(), s.end());
    reverse(t.begin(), t.end());
    
    string res;
    int carry = 0;
    int md = max(t.size(), s.size());
    for(int i=0; i<=md; i++){
        int sc = i<s.size()? s[i]-'0': 0;
        int tc = i<t.size()? t[i]-'0': 0;
        int d = sc + tc + carry;
        char nd = '0' + (d%10);
        if(i == md && nd == '0')
            continue;
        res += nd;
        carry = d/10;
    }
    reverse(res.begin(), res.end());
    return res;
}

int main(){
    string s, t;
    while(cin >> s >> t){
        cout << sum(s, t).size() << endl;
    }
    return 0;
}

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

using namespace std;

int main(void) {
	int n, m, sum;
	vector<int> v;

	while (cin >> n >> m){
		int digit = 1;
		sum = n + m;
		while (sum /= 10) {
			digit++;
		}
		v.push_back(digit);
	}

	for (int i = 0; i < v.size(); i++) {
		cout << v[i] << endl;
	}

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  while(cin>>a>>b){
    int n =a+b;
    int cnt=0;
    while(n){
      n/=10;
      cnt++;
    }
    cout<<cnt<<endl;
  }
  return 0;
}

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

}
return 0;
}