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 <cstdio>
#include <algorithm>
#include <cassert>
#include <vector>
#include <string>
#include <cmath>
#include <map> 
#include <sstream>
#include <cstdio>
#include <complex>
#include <cstring>
using namespace std;
 
const int MAX= 10000100;

#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()
#define ll long long int
#define gcd(a,b) __gcd(a,b)
#define pb(a) push_back(a)
int GCD(int a, int b) {if(!b) return a; return gcd(b, a%b);}
int lcm(int a, int b) {return a*b / gcd(a, b);}

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

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

#define ALL(a) a.begin(),a.end()

using namespace std;

int main()
{
  unsigned a = 1, b;

  while ( cin >> a >> b ) {
    int c = 1, n = a + b;
    if ( n == 0 ) {
      cout << 0 << endl;
      continue;
    }
    while ( n /= 10 )
      c++;
    cout << c << endl;
  }

  return 0;
}

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

int main(void){
  int a,b;
  cin >> a >> b;

  while(!cin.eof()){
    int m = a+b;
    int i;
    for(i=0;m!=0;i++){
      m /= 10;
    }
    cout << i << endl;
    cin >> a >> b;
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main ( void )
{
  int a, b;
  while (cin >> a >> b)
  {
    int c = a + b, digit = 0;

    do
    {
      c /= 10;
      ++digit;
    } while (c);

    cout << digit << endl;
  }
  return 0;
}

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

int digit(int v){
	int cnt = 1;
	while ((v /= 10) != 0)
		cnt++;
	return cnt;
}

int main(){
	int a, b;
	scanf("%d%d", &a, &b);
	printf("%d\n", digit(a+b));
	return 0;
}

C++: #include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;
int main () {
	int a,b;
	while(cin >> a >> b){
		int i = a + b;
		int n = 0;
		//cout << i / 10 << endl;
		while(i != 0){
			i /= 10;
			n++;
		}
		cout << n << endl;
	}

}

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

C++: #include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string>
#include<vector>
#include<math.h>
#include<queue>
#include <algorithm>
#include<functional>
#include<cstdlib>
#include<cmath>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define FORR(i, m, n) for(int i = m;i >= n;i--)
#define CI cin >>
#define CO cout <<
#define E << endl;

using namespace std;

typedef pair<int, int> P;
typedef pair<long, long> LP;
typedef pair<int, P> PP;
typedef pair<long, LP> LPP;



int dy[] = { 0, 0, 1, -1, 0 };
int dx[] = { 1, -1, 0, 0, 0 };

int A = 0, B = 0, K = 0, T = 0, W = 0, N = 0, H = 0;
int n = 0;
double L = 0;
double S = 0;
double ar = 0, br = 0, cr = 0;
int answer = 0;

string C;
string sA, strB;
vector<vector<char>> map;
vector<double> num;
vector<string> str;

int sum = 0;

vector<int> value;
vector<int> weight;

int dp[110][10010];

int data_[210][2] = {-2};

void input() {
	int i = 0;

	

	return;
}


int main(void) {
	input();
	int i = 0;
	int sum = 0;
	int numb = 0;
	int a = 0;
	int b = 0;

	while ((scanf("%d%d",&a,&b)) != EOF) {
		sum = a + b;
		while (sum != 0) {
			numb++;
			sum /= 10;
		}
		CO numb E
		numb = 0;
	}



	return 0;
}

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

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

C++: #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
int main(){
	int a,b;
	int sum=0;
	int count=0;
	vector<int> digits;
	for(int i=0;i<200;i++){
	 cin >> a >> b;
	 sum = a + b;
	 digits.push_back(log10(sum)+1);
	}
	for(int i=0; i<digits.size();++i){
		cout << digits[i] << endl;
	}
	vector<int>().swap(digits);
	return 0;

}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  while(cin>>a>>b){
    int cnt=0,sum=a+b;
    while(1){if(sum==0) break; sum/=10,cnt++;}
    cout<<cnt<<endl;
  }
  return 0;
}

C++: #include<iostream>

using namespace std;

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

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

using namespace std;

 string IntToString(int num){
	stringstream ss;
	ss << num;
	return ss.str();
}


int main(void){
	int count = 0;
	while (count < 200){
		int a, b;
		cin >> a >> b;
		if ((a < 0) || (b < 0)){
			break;
		}

		int sum = a + b;
		string str = IntToString(sum);
		cout << str.length() << endl;
		++count;
	}

	return 0;
}

C++: #include<stdio.h>

int calc(int x,int y){
  int a,t,k =0;
  t = x+y;
  while(t >= 10){
    t = t/10;
    k += 1;
  }
  return k;
}
int main(void){
  int a,b;
  while(scanf("%d %d",&a,&b) != EOF){
    printf("%d",calc(a,b));
  }
}

C++: #include<stdio.h>
#include<string.h>
#include<math.h>
#include<iostream>
#include<algorithm>
#include<set>
#include<queue>
#include<string>
#include<vector>
#include<map>
#include<stack>
#include<list>
using namespace std;
#define inf 0x3f3f3f3f

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

C++: #include <iostream>

int main(){
  int a, b, c;
  int keta;

  while(cin >> a b){
    c=a+b;
    keta=1;
    while((c/=10)>0) keta++;
    printf("%d\n", keta);
  }
  
  return 0;
}

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

int main() {

	while(cin){
	unsigned int a, b;
	cin >> a >> b;

	int unsigned digit = 0, quotient = a + b;
	while(quotient != 0){
		quotient /= 10;
		digit++;
	}
	cout << digit << endl;
	}

	return 0;
}

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(i=0;i<200;i++){
	scanf("%d %d",&x,&y);
	if((x+y) < 10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else if((x+y)<1000000)printf("6\n");
	else printf("7\n");
	}
	return 0;
}

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

int main() {
  int a, b, n, m;
  while(cin>>a>>b){
    m=0;
    n=a+b;

    while(n!=0){
      n/=10;
      m++;
    }

    cout << m << endl;
  }
  return 0;
}

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

using namespace std;

//?????°?±?????????¢??°Figure
int Figure(int a, int b){
    //a+b=0???????????????
    if((a+b) == 0){
        return 1;
    }
    else {
        int figure = (int) log10(a + b) + 1;
        return figure;
    }
}

int main(){
    int a = 0, b = 0;
    //????????????????????????????????° count
    int count = 0;
    //??????????´???????ans?????¨????????????200??¨???
    int ans[200];

    while(cin >> a >> b){
        ans[count] = Figure(a, b);
        count++;
    }

    for(int i = 0; i < count; i++){
        cout << ans[i] << endl;
    }

    return 0;

}