Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		row := strings.Split(scanner.Text(), " ")
		var sum int

		for _, v := range row {
			num, _ := strconv.Atoi(v)
			sum += num
		}

		fmt.Println(len([]rune(strconv.Itoa(sum))))
	}
}

C++: #include <iostream>

using namespace std;

int main(void){
    int a,b,c,s;
    while(cin >> a >> b){
        s = a + b;
        for(c=0;c < 7;c ++){
            if(s > 0){
                s = s/10;
            }else{
                break;
            }
        }
        cout << c << endl;
    }
}

C++: #include <iostream>
int main(){int a,b,p;for(;!(std::cin>>a>>b).eof();std::cout<<p<<'\n')for(p=1,a+=b;a>9;p++)a/=10;}

C++: #include <bits/stdc++.h>
using namespace std;
int main()
{
    long long int a,b;
    cin>>a>>b;
    cout<<floor(log10(a+b)+1)<<endl;
}

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

int main(void){
	int a=0;
	int b=0;
	char c[80];
	scanf("%d %d", &a, &b);
	do{
		sprintf(c, "%d", a+b);
		printf("%d\n", strlen(c));
	}while(scanf("%d %d", &a, &b) != EOF);
	return 0;
}

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

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


}

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

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

C++: #include <cstdio>
??????
#define MAX 1000000
#define MIN 0
#define SIZE 200
??????
int main() {
??int i,j;
??int a,b;
??int cnt = 0;
??int buf = 0;
??int sets[SIZE];
??????
??while(scanf("%d %d",&a,&b) != EOF) {
????if((a < MIN) || (b > MAX)) {
??????continue;
????}
????????
????sets[cnt] = a + b;
????++cnt;
??}
????
??for(i = 0;i <= cnt;++i) {
????j = MAX;
??
????while(j != 0) {
??????if((sets[i] / j) != 0) {
????????++buf;
????????sets[i] -= (sets[i] / j) * j;
??????}
??????
??????j /= 10;
????}
????
  sets[i] = buf;
????buf = 0;
??}
????
??for(i = 0;i <= cnt;++i) {
????printf("%d\n",sets[i]);
??}
????
??return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int a[500], b[500],sum[500],d[500],k[500];
	int i = 0;
	k[500] = 0;
	while (1) {
		cin >> a[i] >> b[i];
		if (a[i] == 0 && b[i] == 0)break;
		sum[i] = a[i] + b[i];
		while (!sum[i]) {
			sum[i] /= 10;
			k[i]++;
		}
		i++;
	}
	for (int j = 0; j <= i-1;j++) {
		cout << k[j] << endl;
	}
	return 0;
}

C++: #include<stdio.h>

int main(void)
{
 int a,b,sum;

 while(1){
  int i=10;
  int count=1;

  if(scanf("%d %d",&a,&b)<2) break;
  
  sum=a+b;

  if(a<0 || b<0) break;

  while(1){
   if(sum<i){
   printf("%d\n" ,count);
   break;
   }else{
   i=i*10;
   count++;
   }
  }
 }
 return 0;
}

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

C++: #include <stdio.h>
#define N 16
int main(){
	char temp[N];
	int a[200],b[200];
	int i,j,k,n;
	char t[N];
	for(i=0;i<200;i++){
		fgets(temp,N,stdin);
		if(temp[1]!='\0'){
			sscanf_s(temp,"%d %d",&a[i],&b[i]);
		}else{
			j=i;
			break;
		}
		//j=scanf_s("%d %d",&a[i],&b[i]);
		//gets(t);
	}
	for(i=0;i<j;i++){
		k=1,n=0;
		while(a[i]+b[i]>=k){
			k*=10;
			n+=1;
		}
		printf("%d\n",n);
	}
	getchar();
	return 0;
}

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

int main()
{
    int IsB = 0,i = 0;
    char a[20],b[20],*digits;
    while(1){
        char str;
        scanf("%c",&str);
        if(str == EOF)break;
        if(str == ' '){
            i = 0;
            IsB = 1;
        }else if(str == '\n'){
            sprintf(digits,"%d",atoi(a) + atoi(b));
            printf("%d\n",strlen(digits));
        }else if(IsB == 0){
            a[i++] = str;
        }else{
            b[i++] = str;
        }
    }
}

C++: #include<iostream>
#include<algorithm>
#include<vector>
#include<cmath>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b)
        cout<<(int)log10(a+b)+1<<endl;

}

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

int digit(int num) {
    int cnt = 0;
    while(num != 0) {
        cnt++;
        num /= 10;
    }
    return(cnt);
}

int main(void) {
    int a, b;
    
    while(scanf("%d %d", &a, &b) != EOF) {
        cout << digit(a + b) << endl;
    }
    
    return(0);
}

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

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

C++: #include <iostream>

using namespace std;

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

C++: #include "iostream"
using namespace std;

int main()
{
	unsigned int i=0,j[30],k[30];
	cin>>j[i]>>k[i];
	while(j[i]!=EOF && k[i]!=EOF)
	{
		i++;
		cin>>j[i]>>k[i];
	}
	for(i=0;i<30&&j[i]!=EOF&& k[i]!=EOF;i++)
		cout<<(j[i]+k[i])<<endl;
	return 0;
}

C++: #include<iostream>

int getDigit(int x);

int main(){
	int a, b;
	
	while(std::cin >> a >> b){
		int n = a + b;
		std::cout << getDigit(n) << std::endl;
	}
	
	return 0;
}


int getDigit(int x){
	int digit = 0;
	
	while(x >= 1){
		x /= 10;
		++digit;
	}
	
	return digit;
}

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

int main()
{
 int a, b;

 while(cin >> a >> b){
  int mas = a + b;
  int n = 0;
  while(true){
   n++;
   mas /= 10;

   if(mas == 0) break;
  }
  cout << n << '\n';
 }

 return 0;
}

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

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

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

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

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

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

	cin >> a >> b;
	sum = a + b;
	
	while(sum > 1){

		sum = sum / 10;
		count++;
	}

	cout << count << endl;


	return 0;
}

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

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

C++: #include<iostream>
using namespace std;
int main() {
	int x,y,z;
	for(int i=0;i<200;i++){
		cin>>x>>y;
		z=x+y;
		if(z<10){
			cout<<1<<endl;
		}else if(z<100){
			cout<<2<<endl;
		}else if(z<1000){
			cout<<3<<endl;
		}else if(z<10000){
			cout<<4<<endl;
		}else if(z<100000){
			cout<<5<<endl;
		}else if(z<100000){
			cout<<6<<endl;
		}else if(z<1000000){
			cout<<7<<endl;
		}
	}
return 0;
}

C++: #include <iostream> //üoÍ
#include <vector>   //®Izñ

using namespace std;

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

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

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

C++: #include <iostream>
using namespace std;
int main(){

	int a,b;
	int i=0;
	while(i<200){
		cin>>a>>b;
		int c = a+b;
		int d = 1;
		int e = 10;
		for(int j=0;j<6;j++){
			if(c == 0){
				cout<<1<<endl;
			}else if(c >= d && c < e){
				cout<<j+1<<endl;
			}
			d = d * 10;
			e = e * 10;
		}
		i++;
	}
	
	return 0;
}

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

using namespace std;

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