Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	//sc.Split(bufio.ScanWords)
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		n1, _ := strconv.Atoi(s[0])
		n2, _ := strconv.Atoi(s[1])
		fmt.Printf("%d\n", len(strconv.Itoa(n1+n2)))
	}
}

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

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

#define pout(n)  printf ("%d\n", n)

#define rep(i,a,n) for (int i = a;i < n;i++)
#define per(i,n,a) for (int i = n-1;i >= a;i--)

const int d4x[4] = {1, 0, -1, 0};
const int d4y[4] = {0, 1, 0, -1};
const int d8x[8] = { 1,1,0,-1,-1,-1,0,1 };
const int d8y[8] = { 0,1,1,1,0,-1,-1,-1 };
 
typedef long long ll;
using namespace std;
 
int main() {
  ll a,b;
  while(cin >> a >> b){
    a += b;
    int count = 1;
    
    while((a /= 10) > 0){
       a /= 10;
      count++;
    }
    
    printf("%d",count);
  }
  return 0;
}

C++: #include <iostream>

using namespace std;

int main(){
  long long a;
  long long b;
  while(cin >>a>>b){
    a += b;
    int count=0;
    while(a>0){
      a/=10;
      count++;
    }
    cout << count << endl;
  }
}

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

int main(){
    int a,b;
    cin >> a >> b;
    a+=b;
    int ans = 0;
    while(a!=0){
        a = a/10;
        ans++;
    }
    cout << ans << endl;

    return 0;
}

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

using namespace std;

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

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

int main(){

	int a = 0;
	int b = 0;
	int c = 0;
	int e = 0;

	for (int i = 0; i < 3; i++)
	{
		scanf_s("%d", &a);
		scanf_s("%d", &b);

		c = a + b;

		for (e = 0; c != 0; e++)
		{
			c /= 10;
		}

		printf("%d\n", e);
	}

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
signed main(){
  int a,b,c,d;
  while(scanf("%d %d",&a,&b)!=EOF){
    d=0;
    c=a+b;
    while(true){
      if(c==0) break;
      d++;
      c=c/10;
    }
    printf("%d\n",d);
  }
}

C++: #include<stdio.h>


int main()
{
	long a,b,sum,count=0;

	while(scanf("%ld %ld",&a,&b)==2)
	{
		sum=a+b;

		while(sum>0)
		{
			sum=sum/10;
			count++;
		}

		printf("%d\n",count);
		count=0;
	}
		
	
}

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

using namespace std;

int main() {

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

	return 0;

}

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

using namespace std;

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

C++: #include<iostream>
#include<sstream>
#include<cmath>
using namespace std;
  
int main(){
string s;
int a,b,c;
while (getline(cin, s ))
{
int SpaceInd = s.find_first_of(" ");

std::istringstream iss1(s.substr(0,SpaceInd));
iss1 >> a;
  
std::istringstream iss2(s.substr(SpaceInd+1));
iss2 >> b;
cout<<(int)log10(a+b)<<endl;
}
return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0;

	for(int i=0;i<3;i++){
		scanf("%d%d",&a[i],&b[i]);

		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		keta[i]=cnt;
		cnt=0;

		printf("%d\n",keta[i]);
	}		

	return 0;
}

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

int main(){
  int a, b;
  while(cin >> a){
    cin >> b;
    stringstream ss;
    ss << (a + b);
    cout << ss.str().size() << endl;
  }
}

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

using namespace std;
 int main()
 {
	 
	 int a,b,sum, counter;
	 cin >>a >>b;
	 sum=a+b;
	 counter=0;
	 while (sum!=0)
	 {
		 sum=sum/10;
	counter++;
	 
	 }
	  cout <<counter<<endl;
 }

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

#define REP(i, s, n) for(int i = s; i < n; ++i)
#define rep(i, n)		 REP(i, 0, n)
#define SORT(c)			 sort((c).begin(), (c).end())
#define IINF					INT_MAX
#define LLINF					LLONG_MAX
#define DEBUG					false

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

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

int digit(int num){
	if((num / 10) > 0 ) return (digit(num/10))+1;
	else return 1;
}

int main(){
	int num1,num2,result=0;
	while(fscanf(stdin,"%d %d",&num1,&num2) != EOF){
		result = digit(num1+num2);
		printf("%d\n",result);
	}
	return 0;
}

C++:  #include <iostream>
 #include <string>
#include <sstream>
using namespace std;
int main(){
	int x , y ;
	while(cin>>x>>y){
		x=x+y;
		stringstream a;
		a << x ;
		string str = a.str();
		y = str.size();
		cout << y << endl;
	}
}

C++: #include <iostream>

using namespace std;

int getDigitNumber(int n){
  return n > 0 ? 1 + getDigitNumber(n / 10) : 0;
}

int main(int argc, char const *argv[]) {
  while(true){
    int a,b;
    cin >> a >> b;
    if ( cin.eof() ) { break; }
    cout << getDigitNumber(a+b) << endl;
  }
  return 0;
}

C++: #include<iostream>

using namespace std;
 
int main(){
  int x[3],y[3],sum,i;
  int digit[3] = {0};

  for(i=0; i<3; ++i)
    cin >> x[i] >> y[i];

  for(i=0; i<3; ++i){
    sum = x[i] + y[i];

    while(sum != 0){
      sum = sum / 10;
      ++digit[i];
    }
  }

  for(i=0; i<3; ++i)
    cout << digit[i] << "\n";

    return 0;
}

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

int main() {
    int a, b;
    while(cin >> a >> b) {
        a += b;
        int ans;
        for(ans=0; a != 0; ++ans) {
            a /= 10;
        }
        cout << ans << endl;
    }
}

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

int main()
{
  int n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  int sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

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(){
  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<bits/stdc++.h>

using namespace std;

main(){
	int a,b;
	while(cin>>a>>b){
		int s=1;
		int g=0;
		int d=a+b;
		while(d >= 1){
		d=d/10;
		g=g+1;
	}
	printf("%d\n",g);
	}
}

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

C++: #include<stdio.h>


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

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

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