Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		if len(chunks) != 2 {
			break
		}
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(a + b)
	}
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b;

    while(scanf("%d%d",&a,&b)!=EOF)
    {
        int c=a+b;

        double d=log10(c);

        d=d+1;

        cout<<floor(d)<<endl;
    }
}

C++: #include<iostream>
using namespace std;
int main()
{
    long int a,b,i=0,sum=0;
    cin>>a>>b;
    sum=a+b;
    while(sum!=0)
    {
      sum=sum/10;
      i++;
    }
    cout<<i;
    return 0;
}

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

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

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

int a,b,c,hasil;

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

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

using namespace std;

int main (void) {
  int a, b, c;
  char dummy[8];
  
  cin >> a >> b;
  
  if(cin.eof()) return 0;

  c = a + b;

  cout << sprintf(dummy, "%d", c) << endl;

  return 0;
}

C++: #define _CRT_SECURE_NO_DEPRECATE

#include<iostream>
using namespace std;
int main()
	{
		int a, b, sum, result = 0;
		while (scanf("%d %d", &a, &b) != EOF)
		{
			sum = a + b;
			while (sum > 0){
				sum /= 10;
				result++;
			}
			cout << result<<endl;
		}

		return 0;
	
}

C++: #include<iostream>
using namespace std;
int main (){
	int a,b,gou,p,i,j;
	for(i=0;i<200;i++){
		p=0;
		gou=0;
		cin>>a>>b;
		gou=a+b;
		for(j=0;j<7;j++){
			if(gou>0){
				p++;
			}
			else{
				break;
			}
			gou=gou/10;
		}
		cout<<p<<endl;
	}
	return 0;
}

C++: #include<stdio.h>

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

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

using namespace std;

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

C++: #include <cmath>
#include <ctime>
#include <algorithm>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <list>
#include <deque>
#include <stack>
#include <bitset>
#include <functional>
#include <numeric>
#include <utility>
#include <iomanip>
#include <cstdio>
#include <cctype>
#include <queue>
#include <complex>
#include <climits>

typedef long long ll;

using namespace std;

int main(void){
	int a, b;
	while(1){
		cin >> a && cin >> b;
		if(a == EOF) break;

		if(a==0 && b==0){
			cout << "1" << endl;
			continue;
		}

		int count = 0;
		int c = a + b;
		while(c != 0){
			c /= 10;
			count++;
		}

	cout << count << endl;

	}

	return 0;
}

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

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

int main(){
  int a, b, c;
  int keta;

  while(cin >> a){
    cin >> b
    c=a+b;
    keta=1;
    while((c/=10)>0) keta++;
    printf("%d\n", keta);
  }
  
  return 0;
}

C++: /* Aizu0002 Digit Number */

#include <stdio.h>

int sum_digits(int n, int base)
{
    int count = 0;

    while(n) {
        count++;
        n /= base;
    }

    return count;
}

int main(void)
{
    int a, b;

    while(~scanf("%d%d", &a, &b))
        printf("%d\n", sum_digits(a + b, 10));

    return 0;
}

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

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");
  

return 0;
}

C++: #include <iostream>
#include <sstream>
int main()
{
        for(uint8_t i=0;i<200;i++)
        {
                std::string str;
                getline(std::cin, str);
                std::stringstream s(str);
                uint32_t a,b;
                s>>a>>b;
                uint32_t sum=a+b;
                uint8_t count;
                for(count=0;sum>0;count++)
                        sum=sum/10;
                if(count==0)
                        count++;
                printf("%u\n",count);
        }

        return 0;
}

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

int main(){
  int x, y;

  while(1){
    cin >> x >> y;
    cout << to_string(x + y).size() << endl;
    if(cin.eof()) {break;}
  }

  return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
	int a, b, c;
	int i = 1;

	cin >> a >> b;
	c = a+b;

	while(c>0){
		c = c/10;
		i++;
	}
	

		cout << i << endl;
}

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

int main(){

	array<int, 6> t{ {10, 100, 1000, 10000, 100000, 1000000} };

	for (int i = 0; i < 200; ++i) {
		 if (!cin) {
			 break;
		 }
		 int a, b, sum;
		 cin >> a >> b;
		 
		 sum = a + b;
		 auto result = find_if(t.begin(), t.end(), [sum](const int x){return sum < x; });
		 auto output = result - t.begin() + 1;
		 cout << output << endl;
	}


	return 0;
}

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

int main(){

	int a[2],b[2],sum[2],i;

	for(i=0; i<3 ;i++){


		cin >> a[i]; 
		cin >> b[i];

		cout << a[i] << " " << b[i] << endl;

		sum[i] = a[i] +  b[i];



		if(sum[i] >= 0 && sum[i] < 10){//1桁の時
			cout << "1" << endl;
		}

		else if(sum[i] >= 10 && sum[i] < 100){//2桁の時
			cout << "2" << endl;
		}

		else if(sum[i] >= 100 && sum[i] < 1000){//3桁の時
			cout << "3" << endl;
		}

		else if(sum[i] >= 1000 && sum[i] < 10000){//4桁の時
			cout << "4" << endl;
		}

		else if(sum[i] >= 10000 && sum[i] < 100000){//5桁の時
			cout << "5" << endl;
		}

		else{
			cout << "想定外の範囲です。" << endl;
		}

	}

		return 0;


}

C++: #import<iostream>
int main(){int a,b,s;while(std::cin>>a>>b){a+=b,s=0;while(a>0,s++,a/=10);std::cout<<s<<"\n";}}

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

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;
	while(cin>>a>>b){
      a+=b;
      b=1;
	for(int i=1;i<8;i++){
		b*=10;
		if(a<b){
			cout<<i<<endl;
			break;
		  }
		}
	}
	return 0;
	}