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(void){
    // Here your code !
    int a,b;
    int num;
    cout<<"enter the first number:"<<endl;cin>>a;
    cout<<"enter the second number:"<<endl;cin>>b;
  a=a/10;
  b=b/10;
  num=a+b;
  cout<<"no. of  digit:"<<num<<endl;
    
}

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

int main(){
	int a[200], b[200], damy, i;

	for(i = 0; i < 200; i++){
		cin >> a[i] >> b[i];
	}

	for(i = 0; i < 200; i++){
		damy = a[i] + b[i];
		for(int k = 0; damy != 0; k++){
			damy /= 10;
			cout << k <<endl;
		}
	}

	return 0;
}

C++: #include<iostream>

using namespace std;

int main(void){
  int a,b;

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

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

C++: a,b=gets.split.map(&:to_i);p (a+b).to_s.length

C++: #include <iostream>

using namespace std;

int main(void)
{
  int a,b;
  int sum;
  int digit=7;

  while(cin >> a >> b)
    {
      sum=a+b;
      
      for(int i=1000000;i>=1;i=i/10)
	{
	  
	  if(sum==0)
	    {
	      cout << 1 <<endl;
	      break;
	    }
	  
	  if(sum/i>0)
	    { cout << digit <<endl;break;}

	  digit--;
	}

      digit=7;
    }

  return 0;

}

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

int main()
{
	int a, b;
	int da, db;
	while (cin >> a >> b) {
		da = log10(a) + 1;
		db = log10(b) + 1;
		cout << da + db << "\n";
	}
	return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
int main()
{
	int c,g,a,b;
	while(1)
	{
		c=0;
		cin>>a>>b;
		if(a!=EOF)
			break;
		g=a+b;
		while(g/10>=1)
		{
			c++;	
			g/=10;
		}		
		cout<<c+1<<endl;
	}
	return 0;
}

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

	}
	getchar();
	getchar();
	return 0;
}

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

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

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

int getKeta(int num) {
	int result = 0;

	for (;;) {
		result++;
		if (num < 10)break;
		num /= 10;
	}
	return result;
}



int main() {

	int a, b;
	int ans[200];

	for (;;) {
		cin >> a >> b;

		a += b;
		printf("%d\n",getKeta(a));


	}

	//system("pause");
	return 0;
}

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

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

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

int main()
{
	int a, b;

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

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

long long int a ;
long long int b ;
char str[100] ;

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

C++: #include<cstdio>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		char c[255];
		printf("%d\n",sprintf(c,"%d",a+b));
	}
	return 0;
}

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

int main(void){
  int c, i = 0, a, b, d;
  char tmp[8]; // 0 - 1000000
  while((c = getchar()) != EOF){
    tmp[i++] = c;
    if(c == ' '){
      tmp[i] = '\0';
      a = atoi(tmp);
      i = 0;
    }
  }
  tmp[i] = '\0';
  b = atoi(tmp);

  d = a + b;
  for(i = 0; d !=0; i++){
    d /= 10;
  }
  printf("%d\n", i + 1);
  return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
	int a[200],b[200],sum[200],dight[200],line;
	for(int num=0;num<200;num++){
	dight[num]=0;a[num]=0;b[num]=0;
	}
	int fl=0;
	for(int num=0;num<200;num++){
	 // cout << "numA and numB"<< endl;
	 fl=0;
	 if(cin!=NULL){
	 cin >> a[num];
	 	 if(cin!=NULL){
	 cin >> b[num];
	 }
	 else {
	 line=num-1;
	 break;
	 }
	 }
	 else {
	 line=num-1;
	 break;
	 }
	 sum[num]=a[num]+b[num];
	 for(;fl!=1;){
	 if(sum[num]>=1){
	 sum[num]=sum[num]/10;
	 dight[num]++;
	 }
	 else fl=1;
    }
    }
    for(int num=0;num<line;num++){
    cout << dight[num]<< endl;
    }
  return 0;
}

C++: #include <iostream>

using namespace std;

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

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

int main(){ 
    int a,b,cnt=1,i,j=10;

    while(cin>>a>>b){
        int add=a+b;
        while(1){
            i = add - j;
            if(i>=0)cnt++;
            else break;
            j *= 10;
        }       
        cout << cnt << endl;
    }
    return 0;
}

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

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

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

int main() {
	int a, b;
	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;
	else if (a + b < 100000000) cout << "8" << endl;
	else if (a + b < 10000000000) cout << "9" << endl;
return 0;
}

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

using namespace std;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);

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

C++: #include <stdio.h>

int main(void)
{
	unsigned int a[2];
	int i;
	int b[2];
	int count;

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

		count = 0;
		do{
			count++;
		}while((a[i] = a[i]/10) > 0);

		b[i] = count;
	}

	printf("%d\n", b[0] + b[1]);
	
	return 0;
	
}

C++: #include <cstdio>

int main()
{
  int a, b;
  int cou;

  while (scanf("%d %d", &a, &b) != EOF){
    a += b;
    cou = 0;
    while (1){
      if (a == 0){
        break;
      }

      cou++;
      a /= 10;
    }
    printf("%d\n", cou);
  }

  return (0);
}

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

int main()
{
  int a,b,wa;
  int count;

  while(cin >> a >> b){
    count=0;
    wa=(a+b)*10;
    while(wa /= 10){
      count++;
    }
    cout << count << endl;
  }
}

C++: #include <iostream>

using namespace std;

int main()
{
    int a;
    int b;
    int c;
    int digit=0;

    cin >> a;
    cin >> b;

    c = a+b;

    while (c>=1)
    {
        c = c/10;
        digit++;
    }

    cout << digit;

    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;
		j=0;
		cin>>a>>b;
		gou=a+b;
		for(;;){
			if(gou>0&&(a<=1000000&&a>=0)&&(b<=1000000&&b>=0)){
				p++;
			}
			else {
				j=2;
				break;
			}
			gou=gou/10;
		}
		if(j!=2){
		cout<<p<<endl;
		}
	}
	return 0;
}