Go: // 九九を出すだけ
package main
import (
	"fmt"
	"os"
	"bufio"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main(){
	sc.Split(bufio.ScanWords)
	defer out.Flush()
	for sc.Scan(){
	    s := nextIntIs()
	    sc.Scan()
	    t := nextIntIs()
        a := len(strconv.Itoa(s+t))
	    fmt.Fprintln(out, a)
	}
}

func next() string{
	sc.Scan()
	return sc.Text()
}

func nextInt() int{
	a, _ := strconv.Atoi(next())
	return a
}

func nextIntIs() int{
	a, _ := strconv.Atoi(sc.Text())
	return a
}

C++: #include<iostream>
#include<cmath>
using namespace std;
 
int main()
{
    int num1, num2,sum;
    int n = 1;
    cin >> num1 >> num2;
 
    sum = num1 + num2;
 
    while (true)
    {
        int po = pow(10, n);
        if (!((sum % po) == sum))
            n++;
        else
            break;
    }
 
    cout << n << endl;
 
    cin >> n;
    return 0;
}

C++: #include<iostream>

int main() {
	int a, b,total,truss;
	while (std::cin >> a >> b) {
		total = a + b;
		for (truss = 0; total != 0; truss += 1) {
			total = int(total / 10);
		}
		std::cout << truss << std::endl;



	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a[999],b[999];
  int i=0;
  int k=0;
  int s[999]={0};
  int ke[999]={0};
  while(cin>>a[k]>>b[k]){
  s[k]=a[k]+b[k];
  while(s[k]==0){
    s[k]=s[k]/10;
    ke[k]++;
  }
  k++;
}
  for(i=0;i<=k;i++){
  cout<<ke[i]+1<<endl;
}
  return 0;
}

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

using namespace std;
int main()
{
    long long a,b,sum,fun,cnt;
    while(cin>>a>>b)
    {
        cnt=0;
        sum=a+b;
        for(;;)
        {
            fun=sum;
            sum=fun/10;
            cnt++;
            if(sum<=0) break;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

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

C++: #include <iostream>
using namespace std;
int solve(int a,int b){
    int sum=a+b,ans=0;
    while(sum>0){
        ans++;
        sum/=10;
    }
    return ans;
}
int main(void){
    int a[300]={},b[300]={},i=0;
    cin>>a[0]>>b[0];
    cin>>a[1]>>b[1];
    while(a[i]!=a[i+1]&&b[i]!=b[i+1]){
        cin>>a[i+2]>>b[i+2];
        i++;
    }
    for(int j=0;j<i;j++){
        cout<<solve(a[j],b[j])<<endl;
    }
    return 0;
}

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

C++: #include<iostream>
#include<vector>
#include<cstdio>
#include<string>
#include<algorithm>
#include<numeric>
#include<vector>
#include<iostream>
#include<map>

using namespace::std;

int main(void)
{

  int a,b;

  while(cin >> a >> b)
    {
      int ab = a + b;

      char c_num[64];

      sprintf(c_num , "%d" , ab);
      string s_num = (string)c_num;
      cout << s_num.size() << endl;
    }

  return 0;
}

C++: #include <iostream>

using namespace std;

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

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

using namespace std;
int main(){
	int a,b;
	while(!cin.eof()){
		cin >> a >> b;
		cout << int(log10(a))+int(log10(b))+2 << endl;
	}
	return 0;
}

C++: #include<iostream>                                                                 
                                                                                   
int main(void){                                                                    
  int a,b,c,i=0;                                                                   
  std::cin >> a >> b;                                                              
  c =a+b;                                                                          
 FLAG:                                                                             
    c =c/10;                                                                       
    i++;                                                                           
    if(0<c){                                                                       
      goto FLAG;                                                                   
    }                                                                              
  std::cout << i << std::endl;                                                     
  return 0;                                                                        
}

C++: #include <stdio.h>

int main(void)
{
	int a,b;
	char num[1000];
	int i=0;
	int count=0;
	
	scanf("%d %d",&a,&b);
	
	snprintf(num,1000, "%d", a+b);
	
	for(i=0;i<1000;i++)
	{
		if(num[i] == 0)
		{
			goto result;
		}
	}
	
	result:
	
	printf("%d\n",i);
	
	return 0;
	
}

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

C++: #include <bits/stdc++.h>
using namespace std;
//#include <boost/multiprecision/cpp_int.hpp>
//using multiInt = boost::multiprecision::cpp_int;

using ll = long long int;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template<typename Q_temp>
using smaller_queue = priority_queue <Q_temp, vector<Q_temp>, greater<Q_temp> >;

const int INF = (int) 1e9;
const ll LINF = (ll) 4e18;
const ll MOD = (ll) (1e9 + 7);
const double PI = acos(-1.0);
const int limit = 100010;

#define REP(i,m,n) for(ll i = m; i < (ll)(n); ++i)
#define rep(i,n) REP(i, 0, n)
#define MP make_pair
#define MT make_tuple
#define YES(n) cout << ((n) ? "YES" : "NO") << endl
#define Yes(n) cout << ((n) ? "Yes" : "No") << endl
#define Possible(n) cout << ((n) ? "Possible" : "Impossible") << endl
#define all(v) v.begin(), v.end()
#define NP(v) next_permutation(all(v))
#define dbg(x_) cerr << #x_ << ":" << x_ << endl;
#define dbg2(x_) for(auto a_ : x_) cerr << a_ << " "; cerr << endl;
#define dbg3(x_ , sx_) rep(i, sx_) cerr << x_[i] << " "; cerr << endl;
vector<int> Dx = {0, 0, -1, 1, -1, 1, -1, 1, 0};
vector<int> Dy = {1, -1, 0, 0, -1, -1, 1, 1, 0};

inline ll CEIL(ll a, ll b) {
    return (a + b - 1) / b;
}

//------------------------------------------------------

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

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

using namespace std;

int main(){
        double a, b;
        int i, c;
        scanf("%lf%lf", &a, &b);
        c = 1;
        for(i = 0; c >= 0; i++){
                c = (a + b) - pow(10, i);
        }
        printf("%d\n", i - 1);
        return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==103) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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

using namespace std;

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

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

using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  a += b;
  int dig_num = 1;
  if (a == 0) {
    dig_num = 0;
  }
  while ((a /= 10) != 0) {
    ++dig_num;
  }
  cout << dig_num << "\n";
}