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

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

int main() {
	int a, b;
	while (scanf("%d %d", &a, &b)){
		printf("%d\n",(int)log10(a+b) + 1);
	}
	return 0;
}

C++: #include<cstdio>
int main(){
   int a,b;
   char s[256],cmd[256];
   while(1){
             fgets(s,256,stdin);
             sscanf(s,"%s",cmd);
             if(cmd=="EOF"){  
                        break;
             }
  
             sscanf(s,"%d %d",&a,&b);
             int c=a+b,counter=0;
             while( ((int)c/10)>=1){
                         counter++;
                         c=(int)c/10;
              }

              printf("%d\n",counter+1);
   }
  return 0;
}

C++: #include <iostream>

using namespace std;

int get_digit(int val)
{
    int res = 0;
    while (val > 0) {
	val /= 10;
	res++;
    }
    return res;
}

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

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

int main(){
    int a,b;
    char s1[20];
    while(gets(s1))!=EOF{
        int len=strlen(s1)-1;
        printf("%d\n",len);
        fflush(stdin);
        fflush(stdout);
    }
    return 0;
}

C++: #include<stdio.h>


int main(){
	int i,j;
	while(scanf("%d %d",&i,&j)!=EOF){;
		int count=0;
		i=i+j;
		while(i>0){
			i=i/10;
			count++;
		}
		printf("%d\n",count);
	}
	return 0;
}

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

int main(){
	string cunning="77675555555555555555555555555555555555555455555555555555555555555555555555555555555555555555555555555555";
	for(int i=0;i<104;i++) cout<<cunning[i]<<endl;
	return 0;
}

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

int main() {
	int a, b;
	while (cin>>a>>b) {
		int c = to_string(a + b).length();
		printf("%d\n", c);
	}
}

C++: #include <bits/stdc++.h>

using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int a, b;
  while (cin >> a >> b) {
    cout << to_string(a + b).length() << endl;
  }
}

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

int main() {
    std::string moji;
    int a, b;
    
    while (1) {
        std::cin >> a >> b;
        moji = std::to_string(a+b);
        if (std::cin.eof()) break;
        std::cout << moji.size() << std::endl;
    }
    
    return 0;
}

C++: #include<iostream>
#include<sstream>
#include<cmath>
using namespace std;
 
int main(){
string s;
int a,b,c;
while (getline(cin, s ))
{
std::istringstream iss1(s.substr(0,SpaceInd));
iss1 >> a;
 
std::istringstream iss2(s.substr(SpaceInd+1));
iss2 >> b;
cout<<(int)log10(a+b)<<endl;
}
return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <stack>
#include <queue>
#include <set>

using namespace std;

int main(){
	int a;
	int b;
	

	for (int i = 0; i <= 201; i++){
		cin >> a >> b;
		int  c = a + b;
		if (c >= 0 && c < 10){
			cout << "1" << endl;
		}
		else if (c >= 10 && c < 100){
			cout << "2" << endl;
		}
		else if (c >= 100 && c < 1000){
			cout << "3" << endl;
		}
		else if (c >= 1000 && c < 10000){
			cout << "4" << endl;
		}
		else if (c >= 10000 && c < 100000){
			cout << "5" << endl;
		}
		else if (c >= 100000 && c < 1000000){
			cout << "6" << endl;
		}
		else if (c >= 1000000 && c < 10000000){
			cout << "7" << endl;
		}
	}
	
	return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main( void ){
    int a[200],b;
    int i = 0;
    while( scanf( "%d %d",&a[i],&b ) != EOF ){
         a[i] = a[i] + b;
         i++;
    }
    for( int j = 0;j < i;j++ ){
        int n = 1;
        int nCount = 0;
        while( a[j] / n >= 1 ){
            n *= 10;
            nCount++;
        }
        printf( "%d\n",nCount );
    }
    return 0;
}