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 <string>   
using namespace std;
 
int main(){
int a[2],i = 0,b,c = 1;

cin >> a[0] >> a[1];
b = a[0] + a[1];
while(b >= 10){
	b = b/10;
	c++;
}
cout<<c<<endl;

}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    int x,y;
    for(;;){
        cin >> x >> y;
        if(cin.eof())   break;
        cout << to_string(x+y).length() << "\n";
    }
}

C++: #include<stdio.h>

int main()
{
    long long a,b,c;
    while(scanf("%lld%lld",&a,&b)==2)
    {
        c=a+b;
        int coun=0;
        while(c>0)
        {

            coun++;
            c/=10;
        }
        printf("%lld\n",coun);
    }
    return 0;
}

C++: #include <stdio.h>

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

    while (scanf("%d %d", &a, &b) == 2){
        cnt=0;
        sum = a+b;
        while(sum){
            cnt++;
            sum /= 10;
        }
        printf("%d\n", cnt);
    }
    return 0;
}

C++: #include<cstdio>
using namespace std;
int main()
{
    int a,b,sum,cnt;
    while(scanf("%d %d", &a, &b)==2)
    {
        sum=a+b;
        cnt=0;
        while(sum>0)
        {
            sum/=10;
            cnt++;
        }
        printf("%d\n",cnt);
    }
    return 0;
}

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

using namespace std;


int main()
{
	int a[200],b[200];
	for (int s=0; s <= 200; s++)
	{
		cin >> a[s]>>b[s];
		if (a[s] + b[s] < 10)
		{
			cout << 1 << endl;
		}
		else if (a[s] + b[s] < 100)
		{
			cout << 2 << endl;
		}
		else if (a[s] + b[s] < 1000)
		{
			cout << 3 << endl;
		}
		else if (a[s] + b[s] < 10000)
		{
			cout << 4 << endl;
		}
		else if (a[s] + b[s] < 100000)
		{
			cout << 5 << endl;
		}
		else if (a[s] + b[s] < 1000000)
		{
			cout << 6 << endl;
		}
		else if (a[s] + b[s] < 10)
		{
			cout << 7 << endl;
		}
	}
		return 0;
}

C++: #include <array>
#include <vector>
#include <deque>
#include <queue>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>
#include <string>
#include <algorithm>
#include <numeric>
#include <functional>
#include <iterator>
#include <tuple>
#include <utility>
#include <limits>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cstdint>
#include <cassert>

using namespace std;

#define FOR(i, start, end) for(int i = (start); i < (end); ++i)
#define REP(i, n) FOR(i, 0, n)

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

    return 0;
}

C++: #include <bits/stdc++.h>
 
using namespace std;
 
#define rep(i, n) for(int i = 0; i < (int)n; i++)
#define FOR(i, s, n) for(int i = s; i < (int)n; i++)
#define per(i, n) for(int i = n; i >= 0; i--)
#define ROF(i, s, n) for(int i = s; i >= (int)n; i--)
#define FORIT(i, A) for (auto i : A)
#define PRINT(x) cout << (x) << "\n"
#define ALL(a) (a).begin(),(a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define PB push_back
#define MP make_pair
#define EACH(i, n) for (__typeof((n).begin()) i = (n).begin(); i != (n).end(); ++i)
#define SZ(a) int((a).size())
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define INF 1 << 25
#define CLR(a) memset((a), 0 ,sizeof(a))
#define dump(x) cerr << #x << " = " << (x) << "\n";
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << "\n";
#define sq(n) (n) * (n)
 
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<string> VS;
typedef pair<int, int> PII;
typedef long long LL;
typedef unsigned int uint;
typedef unsigned long long ull;
 
const double EPS = 1e-10;
const double PI = acos( -1.0 );
 
int a, b;

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

C++: #define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

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

	while (1) { 
		digit = 0;
		scanf("%d %d", &a, &b);
		sum = a + b;
		while (sum > 0) {
			sum /= 10;
			digit++;
		}
		printf("%d\n", digit);
	}

	return 0;
}

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

C++: #include<iostream>
using namespace std;
int main(){
int a,b,i,c=0;
cin>>a>>b;
a=a+b;
for(i=1;i<10000000000;i*=10){
	if(a/i==0)break;
	c++;
}

cout<<c<<endl;
return 0;
}

C++: #include <stdio.h>

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

C++: #include<iostream>
#include<string>
#include<cmath>
#include<vector>
#include<stack>
#include<queue>
#include<algorithm>
#include<complex>
using namespace std ;
typedef vector<int> vi ;
typedef vector<vi> vvi ;
typedef vector<string> vs ;
typedef pair<int, int> pii; 
typedef long long ll ;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()

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

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

int main() {
	// your code goes here
	int a,b;
	while(cin >> a >> b){
		char s[100];
		sprintf(s,"%d",a+b);
		cout << strlen(s) << endl;
	}
	return 0;
}

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

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

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

int hoge(int sum,int cnt){
	if(sum/10<=9) return cnt;
	else return hoge(sum/10,++cnt);
}

int main(){
	while(true){
		int a,b;
		cin>>a>>b;
		if(a+b<10) cout<<1<<endl;
		else cout<<hoge(a+b,2)<<endl;
	}
	return 0;
}

C++: #include <stdio.h>

void solve(int a){
	int ans = 0;
	while (a > 0){
		ans ++;
		a /= 10;
	}
	printf("%d\n", ans);
}

int main (){
	int a, b;
	while (~scanf("%d%d", &a, &b)){
		solve(a+b);
	}
	return 0;
}

C++: #include<iostream>

int main(){
	int a,b,c,i,n;
	
	while(std::cin>>a>>b){
		c=a+b;
		n=0;
		i=1;
		while(i<=c){
		n++;
		i=i*10;
		}
	std::cout<<n<<std::endl;
		}

    return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
	int a, b;

	while (cin >> a >> b) {
		int sum = a + b;
		int n;
#if 0
		for (n = 0; sum > 0; n++) {
			sum /= 10;
		}
		cout << n << endl;
#else
		if        (sum >= 10000000) {	n = 8;	 
		} else if (sum >= 1000000) {	n = 7;	
		} else if (sum >= 100000) {		n = 6;	
		} else if (sum >= 10000) {		n = 5;	
		} else if (sum >= 1000) {		n = 4;	
		} else if (sum >= 100) {		n = 3;	
		} else if (sum >= 10) {			n = 2;	
		} else if (sum >= 1) {			n = 1;	
		} else {						n = 0;
		}
		cout << n << endl;
	
#endif
	}
	return 0;
}