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

int digit(int x)
{
    int i = 0;
    int j = 1;
    while (j <= x) {
        j *= 10;
        i++;
    }
    return i;
}
int main()
{
    int m[2];
    int output;
    while (cin >> m[0] >> m[1]) {
            output = digit(m[0] + m[1]);
            cout << output << endl;
    }
}

C++: #include <iostream>

#include <cstdio>

using namespace std;


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

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

C++: #include<stdio.h>

using namespace std;

int main(){
 int a, b;
 while(a!=-1 && b!=-1){
  scanf("%d%d", &a, &b);
  a += b;
  for(i=0;i<201;i++){
   if(a/10==0){
    printf("%d\n", i+1);
    break;
   }
   else{
    a = a/10;
   }
  }
 }

 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;
	while(true ) {
		ans = 0;
		cin >> a >> b;
		c = a + b;

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

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

using namespace std;

int main() {
  for (int i = 0; i < 200; i++) {
    int a;
    int b;
    cin >> a >> b;
    if (a + b == 0) {
      printf("%d\n", 1);
    }else{
      printf("%d\n",1+((int)floor(log10(a + b))));
    }
  }
  return 0;
}

C++: using System;

class main {
  static void Main(){
    string str;
    while(true){
      str = Console.ReadLine();
      if(str == null) break;
      string[] strs = str.Split();
      Console.Write(strs[0].Length);
      Console.WriteLine(" " + strs[1].Length);
    }
  }
}

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


using namespace std;

int main(){
  while(true){
	int a, b; if(!(cin >> a >> b)) return 0;
	cout << (a+b == 1? 0: 1+(int)log10(a+b)) << endl;
  }
  return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="74";
	
	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<iostream>
using namespace std;
int main(){
  int a,b;
  int ans = 0;
  int count = 0;
  cin >> a >> b;
  ans = a + b;
  while(ans!=0){
    ans = ans / 10;
    count++;
  }
  cout << count << endl;
}

C++: #include <stdio.h>
#include <string.h>
using namespace std;

int main() {
    int a, b;
    while(scanf("%d %d", &a, &b) != EOF) {
        char result[10];
        sprintf(result, "%d", a + b);
        printf("%lu\n", strlen(result));
    }
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    int a[1000000],b[1000000],i,j,n;
    cin>>n;
    for(i=0;i<n;i++){
        cin>>a[i]>>b[i];
    }
    for(j=0;j<n;j++){
        if(a[j]+b[j]<10){
            cout<<"1"<<endl;
        }
        else if(a[j]+b[j]<100){
            cout<<"2"<<endl;
        }
        else if(a[j]+b[j]<1000){
            cout<<"3"<<endl;
        }
        else if(a[j]+b[j]<10000){
            cout<<"4"<<endl;
        }
        else if(a[j]+b[j]<100000){
            cout<<"5"<<endl;
        }
        else if(a[j]+b[j]<1000000){
            cout<<"6"<<endl;
        }
        else if(a[j]+b[j]<=1999999){
            cout<<"7"<<endl;
        }
    }
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char const *argv[]) {
	int a, b, ans;

	while ((cin >> a >> b) != 0) {
		a = a + b;
		for (ans = 0; a > 0; ans++) a /= 10;
		cout << ans << 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>
#include<cstdio>
using namespace std;
int main(){
    int a,b;
    while((scanf("%d %d",&a,&b)) != EOF){
        a += b;
        int i = 0;
        while(a > 0){
            a /= 10;
            i++;
        }

        cout << i << endl;
    }
    return 0;
}

C++: def counts(num):
	if num:counts(map(int, raw_input().split()))
	if num:countlist.append(len(str(num[0]+num[1])))

countlist = []
counts(map(int, raw_input().split()))
countlist.reverse()
for x in countlist:
	print x

C++: #include<iostream>
#include<string>
#include<string.h>
#include<algorithm>
#include<stdio.h>
#include<cmath>
#include<vector>
#include<utility>
#include<stack>
#include<queue>

#define FOR(i, a, b) for(int i=(a);i<=(b);i++)
#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)
#define MOD 1000000007

using namespace std;

int main(void) {
	int a, b;
	int c;
	while(cin>>a>>b) {
		c = a + b;
		FOR(i, 1, 100) {
			c /= 10;
			if (c == 0) {
				cout << i << endl;
				break;
			}
		}
	}
	return 0;
}

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int keta(int n){
  static int cnt=0;
  if(n>0){
    cnt++;
    return keta(n/10);
  }else{
    return cnt;
  }
}
int main(){
  int a,b;
  int n;
  while(scanf("%d %d",&a,&b)!=1){
    a+=b;
    n=keta(a);
    cout<<n<<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>
using namespace std;
static const double EPS = 1e-5;
typedef long long ll;
#define FOR(i,n) for(i=0;i<n;i++)
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	int a,b;
	for(;scanf("%d %d",&a,&b)!=EOF;){
		int i=0,k=1;
		for(;a+b>=k;i++,k*=10);
		cout<<i<<endl;
	}
	return 0;
}

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

int main() {
	int a,b;
	while(cin>>a>>b){
		int cnt=1;
		for(int i=10;;i*=10){
			if((a+b)/i>=1) cnt++;
				else break;
		}
		cout<<cnt<<endl;
	}

	return 0;
}

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

int main(){

	int a[2];
	cin >> a[0] >> a[1];
	int check=a[0]+a[1],retval=1;
	while(check>=10){
		check/=10;
		retval++;
	}
	cout << retval << endl;

    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <string>
#include <vector>
using namespace std;
const int MAX = 1000000;

int main(){
    int a, b, sum, digit;
    while(scanf("%d %d", &a, &b) != EOF){
        sum = a+b;
        digit = 0;
        while(sum > 0){
            sum /= 10;
            digit++;
        }
        cout << digit << endl;
    }
    return 0;
}

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

int main() {
   int a, b, c, t = 1;
   cin >> a >> b;
   c = a + b;
   while(1){
   	if(c / 10 == 0) break;
   	c /= 10;
   	t++;
   }
   cout << t << endl;
	return 0;
}

C++: #include <stdio.h>

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

C++: #include<iostream>

using namespace std;


int main()
{
	int a, b,x;
	
	cin >> a >> b;
	int ar[7] = { 1, 2, 3, 4, 5, 6, 7 };
	while (a != -1){
		int counter = -1;
		x = a + b;
		while (x != 0){
			x /= 10;
			counter++;
		}
		cout << ar[counter] << endl;
		cin >> a >> b;
	}
	
}