Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

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

int get_digit(int num);

int main() {
	int first;
	int second;
	int data_cnt = 0;
	std::vector<int> inputs;

	while ((cin >> first >> second) || (data_cnt < 200)) {
		data_cnt++;
		inputs.push_back(first + second);
	}

	for (int i = 0; i < data_cnt; i++) {
		cout << get_digit(inputs[i]) << endl;
	}

	return 0;
}

int get_digit(int num) {
	return log10(num) + 1;
}

C++: #include <stdio.h>

int main(void){
	unsigned long int i,j,sum;
	unsigned int count = 0;
	while(1){
		if(scanf("%ld %ld",&i,&j)==EOF)	break;
		
		sum = i+j;
		count = 0;
		for(unsigned long int dec=10;dec<=1000000;dec*=10){
			if(sum < dec)	break;
			count ++;
		}
		printf("%d\n",count+1);
	}
	return 0;
}

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

int digit(int d){
  return (int)log10((double)d) + 1;
}

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

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



int main(void)
{
  //string stream s;

  int a,b,c;
  vector<int> array;
  int i=0;
  while(1)
    {
	 ostringstream s;
     string os;	
	 cin>>a>>b;
     cout<<a<<","<<b<<endl;
	 if(!cin)break;
	  c=a+b;
	  cout<<c<<endl;
      s <<c;
	  os=s.str();
	  cout<<os<<endl;
	  cout<<os.size()<<endl;
	  s.clear();
	  os.clear();
      array.push_back(os.size());
	  if(array.size()==200)break;
	  
    }

  while(i<array.size())
    {
      cout<<array[i]<<endl;
	  i++;
    }
  array.clear();
}

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

int main(void){
	int a,b,T,c,d,e,f,g,h,i,A=0;
	while(1){
		cin>>a>>b;
		T=a+b;
		
		c=T/1000000;
		if(c>=1) A=A+1;
		
		d=T/100000;
		if(d>=1)A=A+1;
		
		e=T/10000;
		if(e>=1)A=A+1;
		
		f=T/1000;
		if(f>=1)A=A+1;
		
		g=T/100;
		if(f>=1)A=A+1;
		
		h=T/10;
		if(h>=1)A=A+1;
		
		i=T/1;
		if(i>=1)A=A+1;
		
		cout<<A<<endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

class digit{
private:
	int len;
public:
	int scan(int num);
};

int digit::scan(int num){
	len = 0;
	while(num != 0){
		num /= 10;
		len++;
	}
	return len;
}

int main(void){

	int a,b;
	int data[200];
	int i,j;
	i=j=0;
	digit digit;


	while(cin>>a>>b){
		data[i] = digit.scan(a+b);
		i++;
	}

	while(j<i){
		cout << data[j] << endl;
		j++;
	}

	return 0;
}

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

int main()
{ 
	int i1, i2;
	cin >> i1 >> i2;
	i1 += i2;
	i2 = 0;
	while (i1) {
		i2++;
		i1 /= 10;
	}
	cout << i2 << endl;
    return 0;
}

C++: //
//  main.cpp
//  AizuOnlineJudge
//
//  Created by TomoyaYamaguchi on 2016/08/05.
//  Copyright ?? 2016??´ TomoyaYamaguchi. All rights reserved.
//

#include <iostream>

using namespace std;

int main(int argc, const char * argv[]) {
    // insert code here...
    int height[10];//?±±?????????
    int tmp = 0;
    int end = 0;
    
    for(int i=0;i<10;i++){
        cin >> height[i];
    }
    
    while(end == 0){
        end = 1;
        for(int i=0;i<9;i++){
            if(height[i] < height[i+1]){
                end = 0;
                tmp = height[i];
                height[i] = height[i+1];
                height[i+1] = tmp;
            }
        }
    }
    
    for(int i=0;i<3;i++){
        cout << height[i] << endl;
    }
    
    return 0;
}

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

using namespace std;

int main()
{
	unsigned int a, b;
	string sa,sb;
	while (cin)
	{
		cin >> a >> b;
		cout << std::to_string(a+b).size() << endl;
	}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<queue>
#include<stack>
#include<vector>
#include<algorithm>
#include<iomanip>
using namespace std;
#define min(v,w) v>w?w:v;
#define max(v,w) v<w?w:v;
#define INF 0x3f3f3f3f3f3f3f3f
#define MAXN 30

struct p{
	int x,y;
};

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

/*
((F(TF))(TF(F(TF(TF))))(F(TF))(TF))
(TFT)
((TFT)T)

*/

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\n", &b);
    
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
}

C++: #include <iostream>

int main(){

  int a[200];
  int b[200];

  int i=0,A;

  while(std::cin >> A){
    a[i] = A;
    std::cin >> b[i];
    ++i;
  }
  int k;

  for(int j=0;j<i;j++){
    a[j] += b[j];
    k=0;
    do{
      a[j] %= 10;
      ++k;
    }while(a[j]!=0);

    std::cout << k << std::endl;
  }
}

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

int main(){
	long a, b;
	while (cin >> a >> b){
		for (long i = 0; i < 7; i++){
			if (a + b >= pow(10, i) && a + b < pow(10, i + 1)){
				cout << (i + 1) << endl;
			}
		}
	}
	return 0;
}

C++: #include<stdio.h>
#include<iostream.h>
using namespace std;
int main(){
	int ab[200][2],i=0,a,g,k=0;
double f=200;
	while(cin<f){
		scanf("%d %d",&ab[i][1],&ab[i][2]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=ab[j][1]+ab[j][2];
		for(g=0;;g++){
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

C++: #include<stdio.h>


int main(){
	int a;
	int b;
	int i;
	int l=1;
	scanf("%d", &a);	
	scanf("%d", &b);
	i=a+b;
	while(i  >= 10){
		i=i/10;
		l=l+1;
	}
	printf("%d" ,l);
}

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

using namespace std;

int main()
{
	int a, b;

	while (cin >> a >> b)
	{
		cout << static_cast<int>(log10(a + b)) + 1 << endl;
	}

	return 0;
}

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

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

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

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