Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(s[0])
		b, _ := strconv.Atoi(s[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

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

int count_digits(int n) {
  return static_cast<int>(floor(log10(n))) + 1;
}

int main() {
  int n, m;
  while (!std::cin.eof() && std::cin.peek() != '\n') {
    std::cin >> n >> m;
    std::cout << count_digits(n + m) << std::endl;
    while (isspace(std::cin.peek())) { std::cin.ignore(); }
  }
}

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

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

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

int main(){
	int a_heap[3];
	int b_heap[3];
	int digit[3];
	int count;
	for(int i=0;i<3;i++){
		cin >> a_heap[i] >> b_heap[i];
		cout << endl;
	}
	for(int i=0;i<3;i++){
		int num1 = 1;
		int j;
		for(j=1;;j++){
			num1 = 10 * num1;
		if((a_heap[i] + b_heap[i])%10 < 1)
			break;
		}
		digit[i] = j;
	}
	for(int i=0;i<3;i++){
	cout << digit[i] << endl;
	}
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include <cstdlib>
#include <vector>
#include <iomanip>
#include <queue>
using namespace std;


int GetDigit(int n){
	int i = 0;

	while(n > 0){
		n /= 10;
		i++;
	}

	return i;
}
 
int main(){
	int a, b;
	int s;

	while(cin >> a >> b){
		s = a+b;
		cout << GetDigit(s) << endl;
	}

	return 0;
}

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

using namespace std;

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

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

C++: #include<cstdio>

int main(){
int a,b,c=0;
 while(!scanf("%d%d",&a,&b)){
if(c) printf("\n");
c++;
 a+=b;
 b=1;
 while(a!=0){
 a/=10;
 b++;
}
 printf("%d",b);
}
return 0;
}

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

int a,b,c,hasil;

int main()
{
	while (true)
	{
		scanf("%d %d",&a,&b);
		hasil=1;
		c=a+b;
		while(c>=10)
		{
			c=c/10;
			hasil++;
		}
		printf("%d\n",hasil);
	}
	return 0;
}

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

	}
	return 0;
	
	/*Javad SHeybani*/
}

C++: #include <iostream>
#include <string>
#include <cstring>
#include <fstream>
#include <algorithm>
#include <iomanip>
#include <vector>
#include <stack>
#include <queue>
#include <deque>
#include <map>
#include <list>
#include <set>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <bitset>
#include <functional>

using namespace std;

#define FOR(i,n) 		for(int(i)=0;(i)<(int)(n);(i)++)
#define FORN(i,a,b,c) 	for(int(i)=a;i<(int)(b);i+=(c))
#define RES(x,nilai)	memset(x,nilai,sizeof(x));
#define pb              push_back
#define mp              make_pair
#define INF				1000000000

typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;

inline string IS(int a){
    char x[100];
    sprintf(x,"%d",a); string s = x;
    return s;
}

inline int SI(string a){
    char x[100]; int res;
    strcpy(x,a.c_str()); sscanf(x,"%d",&res);
    return res;
}

//==============================================

bool cmp(int x,int y) {return x>y;}

ll x,y;

int main() {
	//freopen("in.txt","r",stdin);
	//freopen("13.txt","w",stdout);
	ios_base::sync_with_stdio(false); cin.tie(NULL);
	
	while (cin >> x >> y) {
		x += y;
		int ans = 0;
		while (x > 0) {
			x/=10;
			ans++;
		} cout << ans << endl;
		
	}
		
    return 0;
}

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

using namespace std;

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

C++: #include<iostream>
using namespace std;
int main(){
    int a,b,i,s,ten=1,j;
    for(j=0;j<200;j++){
        cin >> a >> b;
        if(a==0&&b==0)break;
        s=a+b;
        for(i=1;i<8;i++){
            ten=ten*10;
            if(s/ten==0){
                cout << i << endl;
                break;
            }
        }
        ten=1;
    }

return 0;
}

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

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

using namespace std;

int main(){
	int a,b;
while (cin>>a>>b){
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
}

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

int main() {
    int a;
    int b;
    while (cin >> a >> b) {
        int digit = 1;
        int sum = a + b;
        while (true) {
            if (sum / 10 != 0) {
                digit += 1;
                sum /= 10;
            }
 
            else if (sum / 10 == 0 ) {
                break;
            }
        }
        cout << digit << endl;
    }

    return 0;
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){
  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

ofstream ofs("test.t");
ofs << "testetete" << endl;
cerr << system("echo hello") << endl;


return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <list>
#include <algorithm>
#include <cmath>
#include <stack>
#include <set>
using namespace std;

#define REP(i,n) for(int (i)=0; (i)<(n); (i)++)
#define FOR(i,a,b) for(int (i)=(a); (i)<(b); (i)++)
#define PUSH(n,v) for(int i=0; i<(n); i++) {int j; cin >> j; v.push_back(j);}
#define ALL(v) v.begin(), v.end()

int main() {
    int i, j;
    while(cin >> i >> j) {
        cout << i + j << endl;
    }
    return 0;
}

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

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

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

int main()
{
	int a, b, sum;

	while( true )
	{
		cin >> a >> b;
		sum = a + b;
		
		char str[10];
		int keta = sprintf( str, "%d", sum );

		cout << keta << endl;
	}
	return 0;
}