Go: package main

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

func main() {
        sc := bufio.NewScanner(os.Stdin)

        for sc.Scan() {
                digits := 0
                num := 0
                for _, s := range strings.Fields(sc.Text()) {
                        i, _ := strconv.Atoi(s)
                        num += i
                }
                for num > 0 {
                        digits += 1
                        num /= 10
                }
                fmt.Printf("%d\n", digits)
        }
}

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

int main(){
  int a, b;
  while(cin >> a >> b){
    int ab = a + b;
    int digit = 0;
    while(1){
      ab = ab/10; 
      digit++;
      if(ab==0)break;
    }
    cout << digit << endl;
  }
  return 0;
}

C++: #define _USE_MATH_DEFINES

#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
#include <numeric>

using namespace std;

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

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

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

using namespace std;

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

C++: #include <iostream>
#include <string>
using namespace std;
int main(){
  int a,b;
  while(cin >> a){
	cin >> b;
	int sum = a+b;
	string str;
	str = to_string(sum);
	cout << str.size() << endl;
  }

}

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

using namespace std;

int main(){
	while(!cin.eof()){
		int a,b;
		cin>>a>>b;
		int m = a+b;
		int d = 0;
		if(m == 0){
			cout << "1" << endl;
			continue;
		}
		while(m > 0){
			m /= 10;
			d++;
		}
		cout << d << endl;
	}
	return 0;
}

C++: #include<stdio.h>
int main(void) {
	int a, b, d = 1,l=0;
	while (l<200)
	{
		scanf("%d %d", &a, &b);
		for (size_t i = 10; ; i *= 10)
		{
			if ((a + b) / i == 0)break;
			d++;
		}
		printf("%d\n", d);
		a = 0; b = 0; d = 1;
		l++;
	}
	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 <iostream>
#include <cstdio>
using namespace std;
int main() {
    int a, b;
    while (cin >> a >> b)
        cout << a + b << endl;
}

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

int hoge(int sum,int cnt){
	if(sum/10<=9) return cnt;
	else return hoge(sum/10,++cnt);
}

int main(){
	for(;;){
		int a,b;
		cin>>a>>b;
		if(cin.fail()) break;
		if(a+b<10) cout<<1<<endl;
		else cout<<hoge(a+b,2)<<endl;
	}
	return 0;
}

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

int main(){
int a;
int b;
int c;
int n;
int d;
while(cin >> a >> b){
c=a+b;
d=1;
n=0;
while(1){
if(d>c){break;}
d=d*10;
n=n+1;}
cout << n << endl;
}
    return 0;
}

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

#define     MAX_NUMBER     200

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

	while(cin >> num1 >> num2){
		//整形
		sprintf_s(str,"%d\0",(num1 + num2));

		// 文字数計測
		for(i=0;str[i] != '\0';i++){
		}

		// 文字数表示
		cout << i << endl;
	}

	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a, b, sum;
    
    while(true){
        cin >> a >> b;
        if(cin.fail()) break;
        
        sum = a + b;
        
        if(sum / 10 != 0 && sum / 100 == 0)
            cout << 2 << endl;
        else if(sum / 100 != 0 && sum / 1000 == 0)
            cout << 3 << endl;
        else if(sum / 1000 != 0 && sum / 10000 == 0)
            cout << 4 << endl;
        else if(sum / 10000 != 0 && sum / 100000 == 0)
            cout << 5 << endl;
        else if(sum / 100000 != 0 && sum / 1000000 == 0)
            cout << 6 << endl;
        else 
            cout << 7 << endl;
    }
}

C++: #include<iostream>
#include<algorithm>
#include<cmath>
#include<string>
#include<vector>

using namespace std;

int main()
{
	int a[200], b[200], n, ans=1;
	for (int i = 0; i < 200; i++) 
	{
		cin >> a[i] >> b[i];
		n = a[i] + b[i];
		while (n > 1) 
		{
			n /= 10;
			ans++;
		}
		cout << ans << endl;
	}
}

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

int main()
{  
  int buff,buff2,result;
  cin >> buff >> buff2;
  
  while(buff != 0)
  {
    buff += buff2;
    buff /= 10;
    result++;
  }

  cout << result << endl;
  return 0;
}

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(i=0;i<200;i++){
	scanf("%d %d",&x,&y);
	if((x+y) < 10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else printf("6\n");
	}
	return 0;
}

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

int c = 0;

void keta(int A) {
	if (A > 9) {
		c++;
		keta(A/10);
	}
	return;
}

int main()
{
	int A, B,C;
	while (cin >> A >> B) {
		c = 0;
		A += B;
		keta(A);
		c++;
		cout << c <<endl;
	}
    return 0;
}

C++: #include<iostream>
using namespace std;
int keta(int x);

int main(){
	unsigned long int a,b;
	for(int i=0;i<200;i++){
		cin>>a>>b;
		cout<<keta(a+b)<<endl;
	}
	return 0; 

}

int keta(int x){
	int n=10;
	int m=1;
	while(x/n!=0){
		m++;
		n*=10;
	}
	return m;
}

C++: #include <iostream>
#include <iomanip>
using namespace std;
int main()
{
    long long int a,b;
    long long int op=0;
    while((cin>>a>>b)){
        long long int res=a+b;
        long long int k=1;
        while((res/k)!=0){
            k=k*10;
            op++;
        }
        if(res==0)
        {
            op=1;
        }
        cout<<op<<endl;
        op=0;
    }
    return 0;
}

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

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

C++: #include<iostream>

using namespace std;

int main(){
	
	int num,i;

	int a[3],b[3],sum[3],figure;
	
	for(i=0;i<3;i++){
		do{
			cin >> a[i] >> b[i];
		}while((a[i]<0||a[i]>100000)&&(b[i]<0||b[i]>100000));
		
		sum[i] = a[i] + b[i];
		
	}
	
	for(i=0;i<num;i++){
		figure = 1;
		while(sum[i]/10!=0){
			sum[i] = sum[i]/10;
			figure++;
		}
		cout << figure << "\n";
	}
	
	return 0;
}

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

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

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

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

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

int main(){
	int a, b, i = 0;
	cin >> a >> b;
	num = a*b;
	while(1){
		if(num < 10) break;
		i++;
		num /= 10;
	}
	cout << i << endl;
    return 0;
}

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

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