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 <iostream>
#include <cstdlib>
#include <stdio.h>
#include <cmath>

using namespace std;


int main(){
    int a, b;
    char* str;
    str = (char*)malloc(sizeof(char) * 50);

    while(fgets(str, 50, stdin) != NULL) {
        sscanf(str, "%d%d", &a, &b);
        cout << (int)log10(a+b) + 1 << endl;
    }

    return 0;
}

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

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

int main(){
	int a,b;

	while(cin >> a >> b){
		int i;
		int sum = a+b;

		for(i=1;sum>9; i++){
			sum=sum/10;
		}

		cout << i << endl;
	}

	return 0;
}

C++: #include <cstdio>
using namespace std;
 
int main() {
    int a,b;
    while(scanf("%d %d",&a,&b)!=EOF) {
        int total=a+b,ans=1;
        while((total/1)>=10) {
            total/=10;
            ++ans;
        }
        printf("%d\n",ans);
    }
    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;
}

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

int main() {
	int s=0;
	int a[200],b[200];
	while(scanf("%d %d", &a[s], &b[s]) != EOF) {
		s++;
	}

	int cnt;
	int keta[200];
	for(int i=0; i<200; i++) keta[i] = 0;

	for(int i=0; i<s; i++) {
		cnt = a[i] + b[i];
		while(cnt >= 10) {
			cnt/=10;
			keta[i] ++;
		}
		keta[i]++;
	}

	for(int i=0; i<s; i++) printf("%d\n", keta[i]);
	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 printf("6\n");
	}
	return 0;
}

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

int main() {
  int x, y;
  while( (x = cin.get()) != -1) {
    // cin >> x;
    if(x == -1) {
      break;
    }
    cin >> y;
    cout << x + y << endl;
  }
}

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

int digit(int i) {
  int cnt = 0;
  while (i > 0) {
    i /= 10;
    cnt++;
  }
  return cnt;
}

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

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

using namespace std;

int main() {
    long long int input1, input2, temp;
    int result = 0;
    while(scanf("%11d %11d", &input1, &input2)!=EOF) {
        result = 0;
        temp = input1 + input2;
        while (temp != 0) {
            temp /= 10;
            result++;
        }
        printf("%d\n", result);
    }
}

C++: #include <iostream>

using namespace std;

int main() {
	int x, y;
	int total;
	int m = 0;

	while(cin >> x >> y){

		total = x + y;

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

		cout << m << endl;
		m = 0;

	}
}

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

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

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

int main(){
	cout << "Hello, world!" << endl;
}

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

using namespace std;

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

	return 0;
}

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;
    while ( ain.eof()){break;}
        c = a+b;
        if (c/1000000>=1)
            cout << "7" << endl;
        else if (c/100000>=1)
            cout << "6" << endl;
        else if (c/10000>=1)
            cout << "5" << endl;
        else if (c/1000>=1)
            cout << "4" << endl;
        else if (c/100>=1)
            cout << "3" << endl;
        else if (c/10>=1)
            cout << "2" << endl;
        else
            cout << "1" << endl;
    }
}

C++: #include<iostream>
using namespace std;
  
int main(){
   int a[200],b[200],c[200],digit[200];
   int i,imax,j;
   i = 0;
   j = 1;
   for(i=0;i<200;i++)digit[i] = 1;
   while(j){
     cin >> a[i] >> b[i];
     c[i] = a[i] + b[i];
     i++;
     if(a[i]==NULL||b[i]==NULL)
       break;
   }
  
   imax = i;
  
   for(i=0;i<imax+1;i++){
     while(c[i]>=10){
       c[i] /= 10;
       digit[i]++;
     }
   }
  
   for(i=0;i<imax+1;i++)cout << digit[i] << endl;
  
   return 0;
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){
  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

  cerr << system("hostname") << endl;


return 0;
}

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

int keta(int i){
	if(i<10){
		return 0;
	}else{
		return 1+keta(i/10);
	}
}

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

C++: #include<stdio.h>

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

C++: #include<iostream>
#include<math.h>
using namespace std;
int main()
{
	while(1){
		int a=0,b=0,wa=0,keta=0;
		cin >> a >> b;
		wa=a+b;
		keta=(int)log10(wa)+1;
		cout << keta << endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(){

  int a,b;
  while(1){
    cin >> a;
    if(cin.eof()){
      break;
    }
    cin >> b;
    int sum = a + b;
    int cnt = 1;
    while(sum /= 10){
      cnt++;
    }
    cout << cnt << endl;
  }

  return 0;
}

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;
	while(cin >> a >> b){
	 cin >> a >> b;
	 sum = a + b;
	 digits.push_back(log10(sum)+1);
	}
	for(int i=0; i<digits.size();++i){
		cout << digits[i] << endl;
	}
	return 0;

}