Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
)

func sliceAtoi(sa []string) ([]int, error) {
	si := make([]int, 0, len(sa))
	for _, a := range sa {
		i, err := strconv.Atoi(a)
		if err != nil {
			return si, err
		}
		si = append(si, i)
	}
	return si, nil
}

func getDigits(ary []int) (digits int) {
	sum := 0
	for _, v := range ary {
		sum += v
	}

	for sum != 0 {
		sum /= 10
		digits++
	}
	return
}

func getsTwoNumAsArray() (nums [][]int) {
	scanner := bufio.NewScanner(os.Stdin)

	for scanner.Scan() {
		str := scanner.Text()
		if str == "" {
			break
		}

		ary, _ := sliceAtoi(strings.Split(str, " "))
		nums = append(nums, ary)
	}

	return
}

func main() {
	ary := getsTwoNumAsArray()

	for _, v := range ary {
		fmt.Println(getDigits(v))
	}
}

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

using namespace std;

int main(){
  string a, b;
  while(cin >> a >> b){
    while(a.size() > b.size()) b = "0" + b;
    while(a.size() < b.size()) a = "0" + a;
    int c = 0;
    for(int i=a.size()-1;i>=0;i--){
       c = (a[i]-'0'+b[i]-'0'+c)%10;
    }
    cout << a.size() + c << endl;
  }
}

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

int main(){
  long long 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<stdio.h>
#include<iostream>
using namespace std;
int main(void)
{
    __int64 a,b;
    while(scanf("%I64d %I64d",&a,&b)!=EOF)
    {
       __int64 sum;
       sum=a+b;
       int j=0;
       while(sum!=0)
       {
         sum/=10;
         j++;
       }
       printf("%d\n",j);
    }
    return 0;
}

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

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

using namespace std;

int a, b;

void solve(int n) {
	if (!n) return;
	++b, solve(n / 10);
}

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

C++: #include <iostream>

using namespace std;

int main() {
	int a,b,c,ans;
	for(int i = 0; i < 200; i++){
		cin >> a >> b;
		if(0 <= a && 0 <= b && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

C++: #define scanf_s scanf
#include <string>
#include <stdio.h>
#include <math.h>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (int i = 0; i < cou; ++i) {
		printf("%d\n", ans[i]);
	}
}

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

using namespace std;

void readData(vector<string>& input_data){
    string buff;
    while(getline(cin, buff))
        input_data.push_back(buff);
}

int perseString(string line) {
    stringstream ss;
    ss << line;

    int a, b;
    ss >> a >> b;

    return a + b;
}

int countDigit(int n){
    int cnt = 1;

    while(n /= 10)
        ++cnt;

    return cnt;
}

void mainRoutine(){
    vector<string> input_data;

    readData(input_data);

    for(int i = 0; i < input_data.size(); ++i){
        auto ret = perseString(input_data[i]);
        cout << countDigit(ret) << endl;
    }
}

int main() {
    mainRoutine();

    return 0;
}

C++: #include <iostream>

using namespace std;
int main()
{
	int a,b;
	while (1){
		cin >> a;
		if (a == EOF) return;
		cin >> b;
		if (b == EOF) return;
		cout << a + b << endl;
	}
}

C++: #include <iostream>
using namespace std;
int main(){

	long a,b;
	
	while(1){
		cin>>a>>b;
		
		long c = a+b;
		long d = 1;
		long e = 10;
		for(int j=0;j<10;j++){
			if(c == 0){
				cout<<1<<endl;
			}else if(c >= d && c < e){
				cout<<j+1<<endl;
			}
			d = d * 10;
			e = e * 10;
		}
		
	}	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7763";
	
	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 <stdio.h>

int main(void){
	int a,b;
	int i;
	while(scanf("%d%d",&a,&b)!=EOF){
		a+=b;
		for(i=1; (a/=10); i++);
		printf("%d\n",i);
	}
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		switch(cnt){
		case 0:
			if(b!=0) flg=true; 
			break;
		}
		
		if(flg) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

using namespace std;

int main(void)
{

	for(int i = 0; i < 3; i++){
		int a, b;
		cin >> a >> b;
		a+=b;
		for(int d = 1; a > 0; d++){
			a /= 10;
		}
		cout << d;
	}

	return 0;
}

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

int main(){
    int a,b,c,i;
	for(int j=0;j<200;j++){
		if(!(cin >> a >> b))break;
		c = a+b;
		for(i=1;true;i++){
			c = c/10;
			if(c==0)break;
		}
		cout << i << endl;
	}

    
    return 0;
}

C++: #include <cstdio>
 
#define MAX 1000000
#define MIN 0
#define SIZE 200
 
int main() {
 int i,j;
 int a,b;
 int cnt = 0;
 int buf = 0;
 int sets[SIZE];
 
 while(scanf("%d %d",&a,&b) != EOF) {
  if((a < MIN) || (b > MAX)) {
   continue;
  }
  
  sets[cnt] = a + b;
  ++cnt;
 }
 
 for(i = 0;i <= cnt;++i) {
  j = MAX;

  while(j > MIN) {
   buf += ((sets[i] / j) * j);
   j /= 10;
  }
   
  sets[i] = buf;
  buf = 0;
 }
 
 for(i = 0;i <= cnt;++i) {
  printf("%d\n",sets[i]);
 }
 
 return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		switch(cnt){
		case 0:
			if(a<500000) flg=true; 
			break;
		}
		
		if(flg) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <sstream>
#include <cstdio>
using namespace std;

int main()
{
	while(true)
	{
		int a, b;
		cin >> a >> b;
		if(cin.eof())
			break;

		char len[10];
		sprintf(len, "%d", a + b);
		string sum(len);
		cout << sum.size() << endl;
	}
	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b;
    while(cin >> a >> b){
        int sum = a + b;
        string ans = to_string(sum);
        cout << ans.size() << endl;
    }
    return 0;
}