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

int main() {
	__int64 a, b, c;
	int x;
	bool flg = true;

	while (1) {
		cin>>a;
		if (a==EOF)
			break;

		c=a+b;

		x = 1;
		flg = true;
		while (flg) {
			if ((c=c/10)>0)
				x++;
			else
				flg = false;
		}
		cout<<x<<endl;
	}
	return 0;
}

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

int main(){
	int out[200];
	int n, m;
	int count = 0;
	while(cin >> n >> m){
		for(int i = 0; i < 100; i++){
			if(pow(10.0,i) <= n+m){
				out[count] = i;
				break;
			}
		}
		count++;
	}
	for(int i = 0; i < count; i++){
		cout << out[i] << endl;
	}
}

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

int main(){
  unsigned a, b;

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

  return 0;
}

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

int main(){
  int a,b;
  while(cin>>a>>b){
    int ans;
    int tmp = a+b;
    string str = to_string(tmp);
    ans = str.size();
    cout << ans << endl;
  }
}

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

int main(void) {
    string str;
    while(getline(cin, str)) {
        int a, b;
        scanf("%d %d", &a, &b);

        int sum = a + b;

        int c = 1;
        int d = 10;
        int z = sum / d;

        while (z != 0) {
            d = d * 10;
            z = sum / d;
            c++;
        }
        printf("%d\n", c);
    }
    return 0;
}

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

int main(){
	int cnt,a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		cnt=0;
		for(int i=10;;i*=10){
			if((a+b)/i==0){
				std::cout<<cnt<<'\n';
				break;
			}
			cnt++;
		}
	}
	return 0;
}

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

int main() {
    long a;
    long b;

    while(cin >> a >> b) {
        long c = a + b;

        int result = 0;
        do {
            c /= 10;
            result++;
        } while(c != 0);

        cout << result << endl;
    }

    return 0;
}

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

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

C++: #include <cstdio>
#include <cstring>

int main() {
    int a, b;
    char nah[100];
    while ( scanf("%d %d", &a, &b) != EOF ) {
          sprintf(nah, "%d", a + b);
          printf("%d\n", strlen(nah));
    }
    return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
    int a, b;

    while (cin >> a >> b) {
        int c = a + b;
        int d = 0;

        while (c > 0, d++, c /= 10);

        cout << d << endl;
    }

    return 0;
}

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

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

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

using namespace std;

int main (void) {
  int a, b, c;
  char dummy[8];
  
  while(1) {
    cin >> a >> b;
  
    if(cin.eof()) return 0;

    c = a + b;

    cout << sprintf(dummy, "%d", c) << endl;
  }
  return 0;
}

C++: #include<cstdio>
#include<algorithm>
#include<cmath>

using namespace std;

int main(){
        double a, b;
        int c;
        int i, j ;
        while(scanf("%lf%lf", &a, &b) != EOF){
                c = a + b;
                for(i = 0; c != 0; i++){
                        c /= 10;
                }
                printf("%d\n", i);
        }
        return 0;
}

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

int a,b;

int main() {
  while (scanf("%d %d" ,&a ,&b) != EOF) {
    int i;
    a = a + b;
    while(a > 0) {
      a = a / 10;
      ++i;
    }
    
    cout << i << endl;
    
  }
}

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

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

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

int main(){
    int num1, num2;
    
    while(cin >> num1 >> num2){
        int result = 1;
        
        num1 += num2;
        
        for(;num1/10 > 0;){
            num1 /= 10;
            result++;
        }
        
        cout << result << endl;
    }
    
    return 0;
}

C++: #include <iostream>
#include <vector>
#include <algorithm>
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>
#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 <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<bool> vb;
typedef vector<char> vc;
typedef vector<ll> vll;
typedef vector<vector<int>> vvi;
typedef vector<vector<string>> vvs;
typedef vector<vector<char>> vvc;
typedef vector<vector<bool>> vvb;
typedef pair<int,int> P;
#define vrep(v,n) for(int i=0;i<n;i++){cin >> v.at(i);} //配列vにn個の要素を入力する
#define rep(i, l, n) for (int i = l; i < (int)(n); i++)
#define repn(i, l, n) for (int i = l; i <= (int)(n); i++)
#define pb push_back 

const int mod = 1000000007;
const int inf = 1e9;

int main(){
    while(1){
        int a = -1, b = -1;
        cin >> a >> b;
        if(a == -1) break;
        string s = to_string(a + b);
        cout << s.length() << endl;
    }
}

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

C++: #include <stdio.h>
int dig(int x){
  int pow = 0;
  while (x){
    x /= 10;
    pow++;
  }
  return pow;
}
int main(){
  int a,b,cnt = 0;
  while(1){
    scanf("%d",&a);
    if (a == -1)  break;
    scanf("%d", &b);
    printf("%d\n", dig(a + b));
  }
  return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=10000;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    int a, b;
    while(cin >> a){
        cin >> b;
        string s = to_string(a+b);
        printf("%d\n", s.length());
    }
}

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

int main() {
	float a,b,sum;
	int t=3;
	while(t--)
	{
		int cont=0;
		do
		{
		cin>>a;cin>>b;
		}while(a<0||a>1000000||b<0||b>1000000);
		sum=a+b;
		do
		{
			sum=sum/10;
			cont++;
		}while(floor(sqrt(sum))!=0);
		cout<<cont<<endl;
	}
	return 0;
}

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