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;
	int n=10;
	while(cin>>a>>b){
	    c=a+b;
	    n=10;
	    for(int i = 0;i<6;i++){
 
	        if(c%n == c){
	            cout<<i+1<<endl;
	            break;
	        }
 
	        n=n*10;
	    }
	}
	return 0;
}

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

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

C++: int main()
{
  int a,b;
  int count1=0,count2=0;
  int sum;
  while(scanf("%d%d",&a,&b)!= EOF)
  {
   while(a < 1000000 && a>0)
    {
     a /= 10;
     count1++;
    }
   while(b < 1000000 && b>0)
    {
     b /= 10;
     count2++;
    }
   sum = count1+count2;
   printf("%d\n",sum);
   count1=0;
   count2=0;
   sum=0;

  }
  return 0;
}

C++: #include <iostream>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <queue>
#include <stack>
#include <cmath>
#include <cstdio>
#include <string>
#include <sstream>

using namespace std;

#define rep(i, n) for(int i = 0; i < (int)n; ++i)
#define repn(i, n) for(int i = 1; i <= (int)n; ++i)
#define pb push_back
#define lb lower_bound
#define mp make_pair
#define ite iterator
#define max2(x, y) ((x) > (y)) ? (x) : (y)
#define max3(x,y,z) max2((x), max2((y),(z)))
#define max4(v,w,x,y) max2(max2((v),(w)), max2((x),(y)))
#define min2(x, y) ((x) > (y)) ? (y) : (x)
#define min3(x,y,z) min2((x), min2((y),(z)))
#define min4(v,w,x,y) min2(min2((v),(w)), min2((x),(y)))
#define ul unsigned long
#define ull unsigned long long
#define INF 1000000007
#define MOD 1000000007
#define fs first
#define sd second

template<typename T>
bool elem(set<T> st, T val){
	return (st.find(val) != st.end());
}

template<typename T>
void printv(vector<T> vt){
    rep(i, vt.size() - 1)
        cout << vt[i] << " ";
    cout << vt[vt.size() - 1] << endl;
}

typedef vector<int> vint;
typedef vector<ul> vul;
typedef vector<ull> vull;
typedef pair<int, int> pii;

int dig(int d){
    int ret = 1;
    d /= 10;
    while(d > 0){
        ret++;
        d /= 10;
    }
    return ret;
}

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

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

using namespace std;

int main(void)
{
	int result[3];

	for(int i = 0; i < 3; i++){
		int a, b;
		scanf("%d %d", &a, &b);
		a+=b;
		int d = 1;
		a /= 10;
		while(a > 0){
			a /= 10;
			d++;
		}
		result[i] = d;
	}

	for(int i = 0; i < 3; i++){
		cout << result[i] << endl;
	}

	return 0;
}

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

using namespace std;

int main()
{
    int a, b;

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

    return 0;
}

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