Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

C++: #include <bits/stdc++.h>
using namespace std;

int main() {
	ios :: sync_with_stdio(false);
	int a, b;
	while(cin >> a >> b) {
		int n = a + b;
		int ans = 0;
		if(n == 0)
			ans = 1;
		else {
			while(n) {
				ans ++;
				n /= 10;
			}
		}
		cout << ans << '\n';
	}
	return 0;
}

C++: #include <stdio.h>

int main(){

long a,b,i,n;

while(scanf("%ld",&a)!=EOF){

scanf("%ld",&b);

n = a+b;

for(i=1;i<10;i++){

 n = n%10;

if(n==0) break;

}

printf("%ld",n);

}


}

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

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

C++: #include<stdio.h>
int main()
{
int x,y,cou,w;
cou=0;w=0;
for(int i=0;i<=200;i++){
w=0;
scanf("%d",&x);scanf("%d",&y);
w=x+y;
while(1)
{
if(w/10==0){cou++;break;}
else {w=w/10; cou++;}
}
printf("%d\n",cou);
}
return 0;
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <string.h>

char *itoa( int val, char *a, int radix )
{
	char *p = a;
	unsigned int v = val;/* 作業用(変換対象の値) */
	int n = 1;/* 変換文字列の桁数記憶用 */
	while(v >= radix){/* 桁数を求める */
		v /= radix;
		n++;
	}
	p = a + n; /* 最下位の位置から設定する */
	v = val;
	*p = '\0';/* 文字列終端の設定 */
	do {
		--p;
		*p = v % radix + '0';/* 1桁の数値を文字に変換 */
		if(*p > '9') {/* 変換した文字が10進で表現できない場合 */
			*p = v % radix - 10 + 'A'; /* アルファベットを使う */
		}
		v /= radix;
	} while ( p != a);
	return a;
}

int main(void) {
	int sum,x,y;
	char ssum[8];
	
	while(scanf("%d%d", &x, &y) != EOF){
		sum = x+y;
		itoa(sum,ssum,10);
		printf("%d\n",strlen(ssum));
	}
	
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<stdio.h>
#include<string>
using namespace std;
int main() {
	long x,y,i, j=0,k=0, a, b;
	while (cin >> a >> b) {
		x = a + b;
		while (1) {
			j++;
			x /= 10;
			if (x == 0) {
				y = j;
				j = 0;
				break;
			}
		}
		cout << y << endl;
		
	}

	return 0;
}

C++: #include <stdio.h>

int main(){

long a,b,i,n;

while(scanf("%ld",&a)!=EOF){

scanf("%ld",&b);

n = a+b;

for(i=1;i<10;i++){

 n = n%10;

if(n==0) break;

}

printf("%ld\n",n);

}


}

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

int main()
{
	int a,b,c;
	cin >>a >>' '>>b;
	c = a+b;
	int ret = 1;
	for(int i=1;;i++){
		if( c/pow(10,i)){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
		
	return 0;
}

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

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

C++: #include <iostream>
#include <cstdio>
int main(int argc, const char * argv[])
{
    int a, b, ab = 0, ans;
    
    while(scanf("%d %d", &a, &b) != EOF){
        if (a < 0 || 1000000 < a) {
            while (a < 0 || 1000000 < a) {
                scanf("%d %d", &a, &b);
            }
        }
        if (b < 0 || 1000000 < b) {
            while (b < 0 || 1000000 < b) {
            scanf("%d %d", &a, &b);
            }
        }
        ab = a + b;
        ans = 0;
        while (ab) {
            ans++;
            ab /= 10;
        }
        printf("%d\n", ans);
    }
    return 0;
}

C++: #include <iostream>
#include <stdio.h>
#include <stdlib.h>
#define N 200
int main(int argc, const char * argv[])
{
    double x1=0;
    double x2=0;
    //int a[N][2];
    //int b[N];
    while(scanf("%lf",&x1) != EOF){
        scanf("%lf",&x2);
        int y=x1+x2;
        int z=1;
        y=y*(0.1);
        while(y>=1){
            z++;
            y=y*(0.1);
        }
        
        printf("%d\n",z);
        
    }
}

C++: #include <stdio.h>

int main(){

long a,b,i,n;

while(scanf("%ld",&a)!=EOF){

scanf("%ld",&b);

n = a+b;

for(i=1;i<10;i++){

 n = n/10;

if(n==0) break;

}

printf("%ld\n",n);

}


}

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

int dig(long long total);
int dig(long long total)
{  if(total<10)
       return 1;
    else
        return (1 + dig(total/10));
    
}

int main () 
{ 
long long a=0;
long long b=0;

do{
cin>>a;
cin>>b;

}while(a<0 || a>1000000 || b<0 || b>1000000);

    long long total = a+b;

return 0; 
}

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

int main() {
/*	int a[3];
	cin >> a[0] ;
	a[1] = 3;
	a[2] = a[0] * 10;

	cout << a[0] <<" " << a[1] <<" "<< a[2] << endl;
	
	for (int i = 0; i < 3; i++) {
		cout << a[i] << endl;
	}


	sort(a,a+5);
*//*
	int a[10];
	for (int i = 0; i < 10; i++) {
		cin >> a[i];
	}
	
	sort(a,a+10,greater<int>());

	for (int i = 0; i < 3; i++) {
		cout << a[i]<<endl;
	}
*/
	int ans = 0;
	int a, b,c;
	for(int i=0;i<201;i++) {
		ans = 0;
		cin >> a >> b;
		c = a + b;

		while (c > 0) {
			c /= 10;
			ans++;
		}cout << ans << endl;
	}
	
	return 0;;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#define M_PI 3.14159265358979
#include <iostream>
#include <stdio.h>
#include <string>
#include <math.h>
#include<iomanip>
#include<vector>
#include<cmath>
#include <algorithm>

using namespace std;

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

C++: #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cfloat>
#include <map>
#include <utility>
#include <set>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <sstream>
#include <complex>
#include <stack>
#include <queue>
#include <numeric>
#include <iomanip>

#define REP(i,n) for(i=0; i < (n); i++)
#define REPONE(i, n) for(i=1; i <= (n); i++)
#define LOOP(n) for(int loopCount=1; loopCount <= (n); loopCount++)
#define ITER(c) __typeof((c).begin())
#define EACH(c,it) for(ITER(c) it =(c).begin(); it!=(c).end(); it++)
#define SZ(c) ((int) (c).size())
#define ALL(c) c.begin(), c.end()
#define SUM(c) accumulate(ALL(c), 0)
#define EXIST(c,v) (find(ALL(c), (v)) != (c).end())
#define PB push_back
#define MP make_pair

using namespace std;
static const double EPS = 1e-9;
static const double PI = 3.141592653589793238462643383279;
typedef long long ll;

string itos(int x){
    ostringstream s;
    s << x;
    return s.str();
}

int main(){
    ll a, b;
    while(cin>>a>>b){
        cout << SZ(itos(abs(a+b))) << endl;
    }
    return 0;
}

C++: #include <iostream>

int main(int argc, const char * argv[]) {
    
    std::string a, b ;
    
    
    while ( std::cin >> a >> b ) {
        printf("%lu\n", a.length() + b.length()) ;
    }
    
    return 0;
}

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

using namespace std;

int main()
{
	int a, b;
	while (cin >> a){
		cin >> b;
		auto sum = a + b;
		stringstream ss;
		ss << sum;
		string str(ss.str());
		cout << str.size() << endl;
	}
}