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 <algorithm>
#include <iostream>
#include <list>
using namespace std;

int check_digit(int num) {
  int digit = 0;
  while (true) {
    num /= 10;
    digit++;
    if (num <= 0) {
      break;
    }
  }
  return digit;
}

int digit_count(int a, int b) {
  int digit;
  digit = check_digit(a + b);
  return digit;
}

int main(int argc, char const *argv[]) {
  int a, b;
  list<int> ls;
  while (!std::cin.eof()) {
    std::cin >> a;
    std::cin >> b;
    ls.push_back(digit_count(a, b));
  }

  list<int>::iterator it = ls.begin();
  while (it != ls.end()) {
    cout << *it << endl;
    it++;
  }
}

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



int main() {

//変数の宣言

	int a,b,sum,i=0;



/////メイン処理/////


	while(cin>>a>>b){ 
//入力
		sum = a + b;
//桁数の計算
	
		while(1){
			if (pow(10,i)<=sum && pow(10,i+1) > sum){
				cout << i+1 <<endl;
				break;
			}
			i++;
		}
	}
	
	
	return 0;
}

C++: 
#include<stdio.h>
#include<vector>
#include<algorithm>
#include<cmath>

int main(){
    int i, j;
    int a,b,c;
    // std::vector<int> avec, bvec;
    for (i = 0; i <= 200; i++){
        scanf("%d %d", &a,&b);
        c = a + b;

        for(j = 0; j < 8; j++){
            if (c / std::pow(10,j) < 1){
                printf("%d\n",j);
                break;
            }
        }
        // avec.push_back(a);
        // bvec.push_back(a);
    }

    return 0;
}

C++: #include <iostream>

const int N = 200;
const int M = 10;

int main(void) {
  int a = 0;
  int b = 0;

  while (!std::cin.eof()) {
    std::cin >> a;
    std::cin >> b;

    if (std::cin.eof()) {
      break;
    }

    int c = a + b;

    int count = 1;

    while (c >= M) {
      c /= M;
      count++;

      if (c < M) {
	break;
      }
    }

    std::cout << count << std::endl;

    if (std::cin.eof()) {
      break;
    }
  }
   
  return 0;
}

C++: #include <bits/stdc++.h>
#include <cstdio>
using namespace std;

int a,b,c;
c = dainyuu();

int main() {
  while (c != EOF) {
    int i;
    a = a + b;
    while(a > 0) {
      a = a / 10;
      ++i;
    }
    
    cout << i << endl;
    
  }
}

int dainyuu() {
  cin >> a >> b;
}

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

int main(){
    int a,b;
    int cnt=1;
    
    while(scanf(" %d %d",&a,&b)){
        cnt=1;
        int c=10;
        for(int i=1;i<9;i++){
            if((a+b)-c<=0)break;
            //cout << a << ' ' << b << '=' << a+b << endl;
            cnt++;
            c*=c;
        }
        cout << cnt << endl;
    }
    
    
    return 0;
}

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

int main(void){
	int a,b;
	cin >> a; cin >> b;
	int c=a+b;
	int i=0;

	while(c>0){
		i++;
		c/=10;
	}
	cout << i << endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main(void){
	for(int a, b, count; cin >> a >> b; cout << count << endl){
		int c = a + b;
		for(count = 0; c != 0; c /= 10) count++;
	}
	return 0;
}

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

using namespace std;

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

    cout << floor(log10(a + b)) + 1 << endl;

    return 0;
}

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

C++: #include<iostream>
#include<string>
using namespace std;
int main(){
	int a,b;
	while(true){
	cin>>a>>b;
	if(a==0&&b==0)
		break;
	int i=0;
	int h=1;
	while(true){
		if(h>a+b)
			break;
		h*=10;
		i++;
	}
	cout<<i<<endl;
	}
	return 0;
}

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

C++: #include<iostream>

using namespace std;

int main()
{
	size_t ix = 0;
	int a[100],b[100];

	while(cin >> a[ix]){
		if(!(cin >> b[ix]))
			break;
		++ix;
	}

	for(size_t count = 0;count != ix;++count){
		int dight,temp = a[count]+b[count];
		for(dight = 1;;)
			if(temp/=10)
				++dight;
			else
				break;
		cout <<dight<<endl;
	}

	return 0;
}

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

int main(void) {
    int a, b;
    int sum;
    
    while(true) {
        cin >> a;
        cin >> b;
        if(a < 0 || b < 0) {
            break;
        }
        sum = a + b;
        
        int check = 1;
        for(int i = 0; i < 7; ++i) {
            if(sum < check - 1) {
                cout << i << endl;
                break;
            }
            check *= 10;
        }
    }
}

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

int main(){
  int a,b,cou,c;
  while(cin>>a>>b){
    c=a+b;
    cou=1;
    for(int i=1;i<=c;i*=10)cou++;
    cout<<cou-1<<endl;
  }
  return 0;
}

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

template<class T>
T input()
{
	T val, val1;
	std::cin >> val >> val1;
	if (val == '\0')return EOF;
	else			return val+val1;
}

int main()
{
	std::vector<int> x;
	int a, b;
	while (scanf("%d %d", &a, &b) != EOF)
		x.push_back(a+b);

	for (int i = 0; i < x.size(); ++i)
		std::cout << static_cast<int>(log10(x[i])) + 1 << std::endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
int a,b;
while(cin>>a>>b)
{

if(a+b<10)
{
	cout<<1<<endl;
}
else if(a+b<100)
{
	cout<<2<<endl;
}
else if(a+b<1000)
{
	cout<<3<<endl;
}
else if(a+b<10000)
{
	cout<<4<<endl;
}
else if(a+b<100000)
{
	cout<<5<<endl;
}
else if(a+b<1000000) 
{
	cout<<6<<endl;
}
else if(a+b<10000000)
{
	cout<<7<<endl;
}
}
return 0;
}

C++: #include<iostream>
#include<vector>
#include<algorithm>
#include<string>
#define add push_back
#define inf 2147000000

using namespace std;

int main(void){
	int a,b;
	
	scanf("%d%d",&a,&b);
	
	a+=b;
	
	int i;
	for(i=0;a>=10;i++){
		a/=10;
	}
	cout<<i+1<<endl;
}

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

using namespace std;

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

C++: using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
class ListOfTopThreeHills
{
	static void Main(string[] args)
	{
		do
		{
			string input = Console.ReadLine();
			if (string.IsNullOrEmpty(input))
			{
				break;
			}
                 string[] inputArr = input.Split(' ');
                 int a = int.Parse(inputArr[0]);
                 int b = int.Parse(inputArr[1]);
                 int sum = a + b;
                 Console.WriteLine(sum.ToString().Length);
		} while (true);
	}
}

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

using namespace std;

typedef long long int lint;

int main(int argc,char** args){

    lint n1;
    lint n2;

    cin>>n1;

    while(!cin.eof()){
        cin>>n2;

        lint sum=n1+n2;

        ostringstream temp;
        temp<<sum;

        string instr=temp.str();
        cout<<instr.length()<<endl;

        cin>>n1;
    }
    

    /* Lets try straight forward way first.
    string s1;
    string s2;

    cin>>s1;
    while(!cin.eof()){
        cin>>s2;
        
        int d1=s1[0];
        int d2=s2[0];

        //lets make sure s1 length is hight or equal
        if(s1.length() < s2.length*(){
            string swit=s2;
            s2=s1;
            s1=s2;
        }

        if(s1
        //if it the last digit, the for sure.
        if(d1+d2>9){

        }



        cin>>s1;
    }

    */

}