Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

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;
}

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


int judge(int n){
	if (n / 1000000 != 0) return 7;
	if (n / 100000 != 0) return 6;
	if (n / 10000 != 0) return 5;
	if (n / 1000 != 0) return 4;
	if (n / 100 != 0) return 3;
	if (n / 10 != 0) return 2;
	if (n / 1 != 0) return 1;
}


int main(){
	int a, b;
	int n , i , j;
	int x[200];
	j = 0;
	while (cin >> a >> b)
	{
		n = a + b;
		x[j] = judge(n);
		j++;
		cout << "#" << endl;
	}
	for (int i = 0; i < j; i++){
		cout << x[i] << endl;
	}

	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a[2];
	cin>>a[0]>>a[1];
	int sum=a[0]+a[1];
	int  i=0;
	while(1){
		i++;
	if(sum>=0&&9>=sum)break;
	sum/=10;
	}
	cout<< i<<endl;
	return 0;
}

C++: #include<stdio.h>
int main(){
  int a,b,c;
  while(scanf("%d %d",&a,&b)!=EOF){
  	c = a + b;
  	if(c<10) printf("1\n");
  	else if(c<100) printf("2\n");
  	else if(c<1000) printf("3\n");
  	else if(c<10000) printf("4\n");
  	else if(c<100000) printf("5\n");
  	else if(c<1000000) printf("6\n");
  	else if(c<10000000) printf("7\n");
  }
  return 0;
}

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

int main(void){
    int a, b;
    while(cin >> a >> b){
        cout << to_string(a + b).size() << endl;
    }
}