Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

C++: #include<iostream>
int main(){
	int a,b;
	while(std::cin>>a>>b){
		int n=a+b;
		if(n<10)std::cout<<1<<std::endl;
		else if(n<100)std::cout<<2<<std::endl;
		else if(n<1000)std::cout<<3<<std::endl;
		else if(n<10000)std::cout<<4<<std::endl;
		else if(n<100000)std::cout<<5<<std::endl;
		else if(n<1000000)std::cout<<6<<std::endl;
		else if(n<10000000)std::cout<<7<<std::endl;
		else if(n<100000000)std::cout<<8<<std::endl;
	}
	return 0;
}

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

using namespace std;


int main(){
	int a,b;
	while (cin >>  a >>  b){
		int l = a+b;
		char n[50];
		l=sprintf (n,"%d",a+b);
		cout << l << endl;
	
	}
	return 0;
	}
	}

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

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

C++: #define _USE_MATH_DEFINES
#include <iostream> 
#include <string>
#include <map>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int a, b, ans;
	cin >> a >> b;
	ans = log10(a+b) + 1;
	cout << ans << endl;
	return 0;
}

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

using namespace std;

long int a, b;
long int sum,ans;

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

C++: #include <bits/stdc++.h>
using namespace std;
int main(){
  long long a,b,ans;
  string s;
  for(int i=0;i<200;i++){
	cin >> a >> b;
	ans=a+b;
	s=to_string(ans);
	cout << s.size() << endl;
  }
  return 0;
}

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

int main(void)
{
    int i;
    int x, y;

    for (;;) {
        scanf("%d %d", &x, &y);
        x += y;
        for (i = 1; ; i++) {
            x /= 10;
            if (x == 0) {
                break;
            }
        }
        printf("%d\n", i);
    }

    return 0;
}

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

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

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

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

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

C++: #include<stdio.h>
int main(){
  int a,b,c;
  while(scanf("%d%d",&a,&b)!=EOF){
  	c = a + b;
  	if(c<10) printf("1");
  	else if(c<100) printf("2");
  	else if(c<1000) printf("3");
  	else if(c<10000) printf("4");
  	else if(c<100000) printf("5");
  	else if(c<1000000) printf("6");
  	else printf("7");
  }
  return 0;
}

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

int main(void){
    int a, b, sum, cnt;
    for(int i=0; i<200; i++){
        cnt = 0;
        cin >> a >> b;
        sum = a+b;
        while(sum){
            sum/=10;
            cnt++;
        }
        cout << cnt <<endl;
    }
    return 0;
}

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

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

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

#define reps(v, f, l) for (int v = (f), v##_ = (l); v < v##_; ++v)
#define rep(v, n) reps(v, 0, n)
#define lep(v, n) reps(v, 1, n + 1)
#define rreps(v, f, l) for (int v = (l), v##_ = (f); v >= v##_; --v)
#define rrep(v, n) rreps(v, 0, n - 1)
#define rlep(v, n) rreps(v, 1, n)
#define show_a(a, size) rep(a##_it, size) std::cout << a[a##_it] << " \n"[a##_it == a##_it_ - 1];
#define show_v(v) show_a(v, v.size())
#define debug(x) std::cerr << #x << " = " << (x) << "\n";

using namespace std;

typedef long long int lint;

static inline int in(){ int x; scanf("%d", &x); return x; }
static inline lint inl(){ lint x; scanf("%lld", &x); return x; }

string toStr(int x)
{
  stringstream ss;
  ss << x;
  return ss.str();
}

int main()
{
  int a, b;
  while (~scanf("%d %d", &a, &b)){
    cout << toStr(a + b).size() << endl;
  }
  return 0;
}

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<algorithm>
#include<vector> 
#include<limits>
#include<numeric>
#include<math.h>
using namespace std;

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int a,b,x;

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

C++: import java.util.*;
public class Main{
    static Scanner sc = new Scanner(System.in);
    public static void main(String[] args){
    while(sc.hasNext()){
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = a+b;
        int ans = 1;
        //System.out.println(c);
        while(c >= 10){
        k++;
        c = c/10;
        //System.out.println(c);
        }
        System.out.println(k);
    }
    }
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555556";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
		double c=a+b;
		int ans=0;
		do{
			c=c/10;
			ans++;
		}
		while(c>0.9999999);
		cout<<ans<<endl;
	}
}

C++: #include <iostream>

using namespace std;
	int main() {
		int a,b,c,d;
		c=a+b;
		if(a<=1000000&&b<=1000000){
			for(int i=0;i<200;i++){
				for(int j=0;j<8;j++){
				d=c/10;
				if(d<1){
					cout<<j+1<<endl;}
				else {
					break;
				}
			}
		}
		return 0;
	}

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

using namespace std;

int main(){
	int a,b;
while(eof){
	}
	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>
#include <cmath>

using namespace std;

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

    return 0;
}

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

int main() {
    int a,b;
    while(cin >> a >> b){
        int ans = 0;
        ans = (int)log10(a+b)+1;
    cout << ans << "\n";
    }
    
return 0;
}

C++: main(a,b){
  for(;~scanf("%d%d",&a,&b);puts(&a))
    a=log10(a+b)+49;
}

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

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

	return 0;
}