Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

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

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

using namespace std;

int main(){
	int a,b;
while(cin>>a>>b){
	}
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

C++: #include <iostream>
using namespace std;
int ans[10];

int main() {
	int a,b;
	while(cin >> a >> b){
		if(cin.eof())break;
	int sum = a+b;
	int j=1;
	int i=1;

	while(i){
		if(sum/=10){
			j++;
		}else{
			cout << j << "\n";
			break;
		}
	}
	}
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77677";
	
	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 <iostream>
#include <cmath>
#include <algorithm>
#include <string>
using namespace std;
int main() {
    int a,b;
    while(cin >>a>>b){
        int c=0,d=a+b;
        while(d){
            d=d/10;
            c++;
        }
        cout <<c << endl;
    }
    return 0;
}

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

int main(){
	int a,b;
	cin >> a >> b;
	cout << (int)log10(double(a+b))+1 << endl;

	return 0;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,x=0;

	while (scanf("%d%d", &a, &b)!=EOF){
		
		if (a + b < 1000000){
			x=6;
		}else if(a + b < 100000){
			x=5;
		}else if (a + b < 10000){
			x=4;
		}else if (a + b < 1000){
			x=3;
		}else if (a + b < 100){
			x=2; 
		}else if (a + b < 10){
			x = 1;
		}printf("%d",x);
	}
	return 0;
}

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

using namespace std;

int main() {
  int a, b;
  while (scanf("%d%d", &a, &b) == 2)
    printf("%d\n", int(log10(a + b)) + 1);
  return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using lint = long long int;
using ulint = unsigned long long int;
template<class T = int> using V = vector<T>;
template<class T = int> using VV = V< V<T> >;
template<class T, class U> void assign(V<T>& v, int n, const U& a) { v.assign(n, a); }
template<class T, class... Args> void assign(V<T>& v, int n, const Args&... args) { v.resize(n); for (auto&& e : v) assign(e, args...); }


V<string> split(const string& s, char c) {
  V<string> res;
  stringstream ss(s);
  string t;
  while (getline(ss, t, c)) res.push_back(t);
  return res;
}

int main() {
  cin.tie(nullptr); ios_base::sync_with_stdio(false);
  string str;
  while (getline(cin, str)) {
    auto ss = split(str, ' ');
    int a = stoi(ss[0]), b = stoi(ss[1]);
    string s = to_string(a + b);
    cout << s.size() << '\n';
  }
}

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

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

C++: #include <iostream>
#include <cstring>
#include <cstdlib>

using namespace std;


int main(){
	int a,b;
	while (cin >>  a >>  b){
		int l = a+b;
		char n[50];
		itoa(l,n,10);
		cout << strlen(n) << endl;
	
	}
	return 0;
	}

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

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

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

int main(){
  int x, y;
  while( cin >> x >> y && x != EOF)
        cout << digit(x+y) << endl;
}

C++: #include<iostream>
using namespace std;
int keta(int a,int b)
{
	return (a+b)/10-(a+b)%10;
}
int main()
{
	int a[200],b[200];
	for(int i = 0;i<200;i++){
		a[i]=0;
		b[i]=0;
	}
	int i=0;
	while(cin>>a[i]>>b[i]){
		i++;
	}
	int j = 0;
	while(0){
		cout<<keta(a[j],b[j])<<"\n";
		if((a[j]&&b[j])==0){
			break;
		}
}
	return 0;
}

C++: #include <iostream>

using namespace std;

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

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

    return 0;
}

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

using namespace std;

int count_digit(int x) {
  int cnt = 1;
  while (x >= 10) {
    cnt++;
    x /= 10;
  }
  return cnt;
}

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

C++: using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            while (true)
            {
                string a;
                a = Console.ReadLine();
               // Console.WriteLine(Convert.ToInt32(a));
                if (Convert.ToInt32(a) == 0) break;
                string d = "";
                string b = "";
                int c = 0;
                for (int i = 0; i <= a.Length - 1; i++)
                {
                    if (a.Substring(i, 1) != " ")
                    {
                        d = d + a.Substring(i, 1);
                        c += 1;
                    }
                    else
                    {
                        break;
                    }
                }
                for (int i = c + 1; i <= a.Length - 1; i++)
                {
                    b = b + a.Substring(i, 1);
                }
                c = int.Parse(b) + int.Parse(d);
                int z = 0;
                while (c != 0)
                {
                    c = c / 10;
                    z += 1;
                }
                Console.WriteLine(z);
            }
        }
    }
}

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

int main(void){
  int a,b;

  while(scanf("%d%d",&a,&b)!=EOF){
  int c=a+b;
  int count=1;
  while(1){
    if(c>=10)c=c/10;
    count++;
    if(c<10)break;
}
  cout<<count<<endl;
  }
  return 0;
}

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

int main(){

  int a,b;

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

  return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main()
{
	int a,b;
	while(cin>>a>>b)
	{
		cin>>a>>b;
		int c =7;
		for (int d =1000000;d>=0;d=d/10)
		{
			cout<<d<<endl;
			if((a+b)/d>=1)
		   {
			break;
		}
			else c=c-1;
			}
	}
}

C++: #include <stdio.h>
int main( void ){
do{
	int a,b;
	scanf( "%d %d",&a,&b );  
	a = a + b;   
	int n = 1;  
	int j = 0;  
	while( true ){    
		if( a / n >= 1 ) n *= 10;    
		else               break;  
		j++;  
		}  
	printf( "%d",j ); 
}while( l < 200;l++ );
	return 0;
}

C++: //ツ禿アツ青蚤,bツつェツ禿シツ療債つウツづェツつスツづつォツ、a+bツづ個個青板づーツ出ツ療債つケツづヲ
//ツ禿シツ療債づ個終ツづュツづィツづ孔OFツづ表ツつウツづェツづゥ

#include<iostream>
using namespace std;

int CountDigit(int x)
{
	int digit = 0;
	while(x)
	{
		x/=10;
		digit++;
	}
	return digit;
}

int main(void)
{
	int a, b;
	while(cin >> a >> b)
	{
		cout << CountDigit(a+b) << endl;
	}
	return 0;
}

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

using namespace std;

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

  return 0;
}

C++: #include <cstdio>

using namespace std;

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