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<stdio.h>                                                                  
#include<iostream>                                                                 
                                                                                   
int main(void){                                                                    
  int x,y,z,keta=0;                                                                
  scanf("%d %d",&x,&y);                                                            
  z =x+y;                                                                          
  while(z>0){                                                                      
    z = z/10;                                                                      
    keta++;                                                                        
  }                                                                                
  std::cout << keta << std::endl;                                                  
  return 0;                                                                        
}

C++: #include <iostream>
  
using namespace std;  
  
// 入力  
int a, b;  
  
void solve()  
{  
    int res = 0;  
  
    a += b;  
  
    for (; a; a /= 10)  
        res++;  
  
    cout << res << endl;  
}  
  
int main()  
{  
    while (cin >> a >> b)  
        solve();  
  
    return 0;  
}

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

int main() {
	long a,b,c,ans;
	int i = 200;
	i--;
	while( i >= 0){
		cin >> a >> b;
		if(0 <= a  && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

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