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

using namespace std;

int main(){
	while (true){
	int a,b;
	cin>>a>>b;
	int n=a+b;
	if (n>99999){	
	cout<<6<<endl;
}
	else if(n>9999){
		cout<<5<<endl;
	}
		else if(n>999){
		cout<<4<<endl;
	}
		else if(n>99){
		cout<<3<<endl;
		}
		else if(n>99){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
	}

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

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

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

return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  long int a,b;
  int x[200];
  int n = 0;
  while(cin >> a >> b){
    x[n] = 0;
    a = a + b;
    while(1){
      a = a/10;
      if(a >= 10)
        x[n]++;
    }
    n++;
  }

  for(int i = 0; i < n; i++)
    cout << x[i] << '\n';

  return 0;
}

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

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

int main() {
	int a, b;
	while (scanf("%d%d", &a, &b)) {
		int c = to_string(a + b).length();
		printf("%d\n", c);
	}
}

C++: #include <stdio.h>
#include <vector>
#include <algorithm>

int main(){
	
	int x ,y;
	while(	scanf("%d %d",&x,&y) != EOF){
		int z  = x+y;
		int digCnt = 1;
		while(z/10!=0){
			z/=10;
			digCnt++;
		}
		printf("%d",digCnt);
	}
	
	return 0;
}

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

int a, b;

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

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,c;
    while ( cin >> a >> b){
        if(cin.eof()){break;}
        c = a+b;
        if (c/1000000>=1)
            cout << "7" << endl;
        else if (c/100000>=1)
            cout << "6" << endl;
        else if (c/10000>=1)
            cout << "5" << endl;
        else if (c/1000>=1)
            cout << "4" a<< endl;
        else if (c/100>=1)
            cout << "3" << endl;
        else if (c/10>=1)
            cout << "2" << endl;
        else
            cout << "1" << endl;
    }
}

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

using namespace std;

int countDigit(int num){
	int i;
	for(i=1;pow(10,i)<=num;i++);
	return i;
}

int main(){
    int i,a,b;
    for(i=0;i<7;i++){
        scanf("%d %d",&a,&b);
        printf("%d\n",countDigit(a+b));
    }
    return 0;
}

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

template<class T>
T input()
{
	T val;
	std::cin >> val;
	return val;
}

int main()
{
	std::vector<int> a;
	for (int i = 0; i < 200; ++i){
		a.push_back(input<int>() + input<int>());
		std::cout << static_cast<int>(log10(a[i]))+1 << std::endl;
	}
	return 0;
}

C++: #include<stdio.h>

int main(){
	
	int a,b,c,t;
	
	while(scanf("%d",&a)!=EOF){
		scanf("%d",&b);
		c=a+b;
		
		for(t=1;c/10!=0;t++){
			c=c/10;
		}
		printf("%d\n",t);
		
	}
	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;
}

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

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

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

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

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

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

int main(){
  while(true){
    int a,b;cin>>a>>b;
    string s(to_string(a+b));
    cout<<s.size()<<endl;
  }
  return 0;
}

C++: #include <cstdio>
int main(){
 int d,n,a,b,; 
 while(true){
  d=0;
  if (scanf("%d %d",&a,&b)==0) break;
  n=a+b;
  while(n>0) { d++, n/=10 };
  printf("%d\n",d);
  return 0;
};

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

C++: #include <iostream>

int main(){
	int a, b ,i ,n ;
	while(std::cin>>a>>b){
	i=1;
	for(n=1;a+b>=i*10;n++){
	if(a+b>=i*10){
	i=i*10;
	}
	}
	std::cout<<n<<std::endl;
}
return 0;
}

C++: #include<stdioi.h>
int main(void)
{
	int a,b,i,sum;
	
	while(scanf("%d %d",&a,&b)!=EOF) {
		sum=a+b;

		i=0;
		while(sum>0)	{
			sum=sum/10;
			i++;
		}
		printf("%d\n",i);
	}
	return 0;
}

C++: include <cstdio>
#include <iostream>
#include <cmath>
using namespace std;
int main() {
	int a, b;
	while(a != EOF) {
		cin >> a >> b;
		a += b;
		a = (int)log10((double)a) + 1;

		cout << a << endl;
	}
	return 0;
}

C++: #include<stdio.h>

main(void){
    int i, n;
    
    scanf("%d", &n);
    int num[n][4];
    
    for( i = 0; i < n; i++){
        scanf("%d %d %d", &num[i][0], &num[i][1], &num[i][2]);
        if((num[i][2]*num[i][2]==num[i][0]*num[i][0]+num[i][1]*num[i][1])||(num[i][0]*num[i][0]==num[i][1]*num[i][1]+num[i][2]*num[i][2])||(num[i][1]*num[i][1]==num[i][0]*num[i][0]+num[i][2]*num[i][2])){
            num[i][3] = 1;
        }else{
            num[i][3] = 0;
        }
    }
    
    for( i = 0; i < n; i++){
        switch (num[i][3]){
            case 0:
            printf("NO\n");
            break;
            case 1:
            printf("YES\n");
            break;
        }
    }

    return 0;
}

C++: #include <stdio.h>

int main(void){
	int a,b;
	int sum;
	int loop_i,loop_j;
	int cnt=0;

	while(scanf("%d %d",&a,&b) != EOF){
		sum = 0;
		sum = a+b;
		for(loop_i = 0;sum != 0;loop_i++) sum/= 10;
		printf("%d\n",loop_i);
	}
	return 0;
}

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

int main(){
    long long a,b;
    cin >> a >> b;
    long long sum = a + b;
    string str = to_string(sum);
    cout << str.length()<<endl;
}

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

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

int main() {
    int a, b, sum;
    while (cin >> a >> b) {
        int divisor = 10, digit = 1;
        sum = a + b;

        do {
            if ((sum / divisor) != 0) {
                digit++;
                divisor *= 10;
            }
            else if ((sum / divisor) == 0)
                break;
        } while (1);

        cout << digit << endl;
    }
    return 0;
}