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<string>
using namespace std;
int main() {
	int a, b;
	cin >> a >> b;
	cout << to_string(a + b).length() << endl;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main() {
	unsigned int a, b, i = 0;
	while (scanf("%d %d",&a,&b)!=EOF){
		a += b;
	while (1) {
		if (a / 10 != 0) {
			a /= 10;
			i++;
		}
		else
			break;
	}
	cout << i + 1 << endl;
}
		return 0;
}

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

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

	return 0;
}

C++: #define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include <iostream>
#include <vector>
#include <list>
#include <map>
#include<string>
#include <algorithm>
#include <functional>
#include <cmath>
using namespace std;
typedef vector <int> ivector;


int main(){
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF){
		int dat=log10(a + b);
		cout << dat+1 << endl;
	}
	

	return 0;
}

C++: #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  int a,b;
  while(cin >>a>>b && a!=EOF){
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=0,x;
  x=a+b;
  while(x>0){
  x/=10;
  count++;
}
  return count;}

C++: #include<iostream>
using namespace std;
int main() {
	int a, b, ans[300], i, z;
	z = 0;
	while (cin >> a >> b) {
		z++;
		a = a + b;
		b = 0;
		while (a != 0) {
			a = a / 10;
			b++;
		}
		ans[z] = b;
	}
	for (i = 1; i <= z; i++) {
		cout << ans[i] << endl;
	}
}

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++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

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

C++: input = raw_input()
splited = input.split()
num = int(splited[0])+int(splited[1])
print len(str(num))

C++: #include <stdio.h>

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

  while(scanf("%d %d", a, b)!=0){
    sum=a+b;
    count=1;
    while(sum/10!=0) count++;
    printf("%d\n", count);
  }
  return 0;
}

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

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

C++: #include<cstdio>
int main(void){
int a,b,i,s;
while(scanf("%d",&a)!=EOF){
 scanf("%d",&b);
 s=a+b;
 for(i=0;s>0;i++){
  s/=10;
 }
 printf("%d\n",i);
}
return 0;
}

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

int main() {
  int a, b;
  stringstream ss;
  while (cin >> a >> b) {
    ss << a + b;
    cout << ss.str().size() << endl;
  }
  return 0;
}

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

int digit(long long x){
  int i=1;
  while(true){
    x/=10;
    if(x==0)break;
    i++;
  }
  return i;
}

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

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

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

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

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

#define times(n, i) uptil(0, n, i)
#define upto(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f) poi i <= _##i poi i++)
#define uptil(f, t, i) for(auto _##i = (t), i = decltype(_##i)(f) poi i < _##i poi i++)
#define downto(f, t, i) for(auto i = (f), _##i = decltype(i)(t) poi i >= _##i poi i--)
#define downtil(f, t, i) for(auto i = (f), _##i = decltype(i)(t) poi i > _##i poi i--)

#define unless(c) if(!(c))
#define until(c) while(!(c))
#define loop while(true)

#define poi ;
#define poipoi << "\n"

using namespace std;

int main(){
    until(cin.eof()){
        int a, b poi
        cin >> a >> b poi
        int sum = a + b, i = 0 poi
        while(sum){
            sum /= 10 poi
            i++ poi
        }
        cout << i poipoi poi
    }
    return 0 poi
}

C++: #include<iostream>

using namespace std;

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

C++: #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  int a,b;
  for(int i=0;i<200;i++){
    cin >>a>>b;
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=1,x;
  x=a+b;
  while(1){
    if(x/10<1)break;
  x/=10;
  count++;
}
  return count;}

C++: #include<iostream>
using namespace std;
 
void digitLength()
{
    int a,b;
    int len = 1;
    int div;
    
    cin>>a;
    cin>>b;
    
    int var = a+b;
    
    while(1)
    {
        div = var / 10;
        
        if(div == 0)
            break;
        var = div;
        len++;
        
    }
    
    cout<<len;
    return;
}
 
 
int main(){
 
    digitLength();
    return 0;
}

C++: #include <iostream>
#include <string>
#include <stack>
#include <math.h>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <vector>

using namespace std;





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

		





}

C++: /*http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp*/

#include <iostream>
#include <cmath>

using namespace std;

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

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

using namespace std;
int main(){
	int a,b;
	while(!cin.eof()){
		cin >> a >> b;
		cout << int(log10(a+b))+1 << endl;
	}
	return 0;
}

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

int main() {

	int a, b, c,d;
	char e[100];

		cin >> a >> b;

		c=a+b;

		d = sprintf_s(e,"%d", c);

	cout << d << endl;

	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <map>
#include <cmath>
using namespace std;
int p(int h){
	int j=0;
	while(h){
		h/=10;
		j++;
	}
	return j;
}
int main(){
	int a,b;
	while(scanf("%d%d",&a,&b)!=EOF){
		cout<<p(a+b)<<endl;
	}
	return 0;
}

C++: #include<iostream>
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 <stdio.h>
#include <iostream>

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
  return 0;
  
}

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

using namespace std;

int main() {
	long long number_1, number_2, sum;
	
	while(scanf("%ld %ld", &number_1, &number_2) != EOF) {
		sum = number_1 + number_2;
		
		stringstream result;
		result << sum;
		
		cout << result.str().size() << endl;
	}	
	return 0;
}