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>
int main(){

for(int k=0;k<200;k++){
int i,j;
cin >> i >> j;
cout << i+j << endl;
}

return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b){
int x=1;
int ans=1;
while(x>=a+b){
x=x*10;
ans++;
}
printf("%d\n",ans);
}
return 0;
}

C++: #include<stdio.h>
#include<math.h>
int main(){
    int a,b;
    while(~scanf("%d%d",&a,&b)){
        printf("%d\n",(int)log10((double)(a+b))+1);
    }
}

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

int main(void)
{
    int i;
    int x, y;

    for (;;) {
        if (scanf("%d %d", &x, &y) == EOF) {
            break;
        }
        x += y;
        for (i = 1; ; i++) {
            x /= 10;
            if (x == 0) {
                break;
            }
        }
        printf("%d\n", i);
    }

    return 0;
}

C++: /* AOJ0002 Digit Number */
 
#include <stdio.h>
 
int sum_digits(int n, int base)
{
    int count = 0;
 
    while(n) {
        count++;
        n /= base;
    }
 
    return count;
}
 
int main(void)
{
    int a, b;
 
    while(~scanf("%d%d", &a, &b))
        printf("%d\n", sum_digits(a + b, 10));
 
    return 0;
}

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

int main()
{
int a=0,b=0,n[N],kaisu=0;

do{
 n[kaisu]=1;
 cin>>a>>b;
 if(a>=0 && b>=0 && a<=1000000 && b<=1000000)
 	{
	 a = a+b;
	 while(a>=10)
	 	{
		 a = a/10;
		 n[kaisu] += 1;
	 	}
 	}
 	cout<<n[kaisu]<<endl;
 	kaisu++;
 	
 	}while(kaisu<N && b!=999);


}

C++: #include<stdio.h>
#define MAX 1000000

int kcount(int,int);
int a[MAX],b[MAX],c[MAX];

int main(){
    int i,count=0,keta;
    
    i=1;
    while(scanf("%d %d",&a[i],&b[i]) != EOF){
        i++;
        count++;
    }
    
    for(i=1; i<=count; i++){
        c[i] = a[i] + b[i];
    }
    
    for(i=1; i<=count; i++){
    keta=kcount(c[i],0);
    if(keta == 0) c[i] = 1;
    else c[i] = keta;
    }
       
    for(i=1;  i<= count; i++){
    printf("%d\n",c[i]);
    }
    
    return 0;
}


int kcount(int c,int count){
    
    if(c==0) return count;
    else {
        c/=10;
        count++;    
        kcount(c,count);
    }
}

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

int main(){
  vector<int> sum;
  vector<string> truss;
  int a,b;
  while(cin>>a) {
    cin>>b;   
 sum.push_back(a+b);
  }
  for(int i=0;i<(int)sum.size();i++) { 
    truss.push_back(to_string(sum[i]));
  cout<<truss[i].size()<<endl;
  }
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a,b,c,d=1;
	cin>>a>>b;
	c=a+b;
	while(true){
		if(c<=9){
			break;
		}
		c=c/10;
		d=d+1;
	}
	cout<<d;
}

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

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

int digit(int n){
    if (n == 0) return 1;
    int i;
    for (i = 0; n > 0;i++){
        n = n / 10;
    }
    return i;
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
#define REP0(i,n) for(int i=0;i<n;++i)
#define REP1(i,n) for(int i=1;i<=n;++i)
#define ALL(c) (c).begin(),(c).end()
int main(){
	int a,b;
	while(scanf("%d%d",&a,&b)!=EOF){
		printf("%d\n",(int)log10(a+b)+1);
	}
	return 0;
}

C++: //#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
//#include <cstdio>
//#include <cstdlib>
//#include <cmath>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <vector>
#include <string>
#include <map>
#include <list>
#include <queue>
#include <set>
using namespace std;

int main(void){

	int a, b;
	
	while(scanf("%d %d", &a, &b) != EOF){
	
	string num = to_string(a+b);
	
	cout << num.size() << endl;
	}

	return 0;
}

/*
for(i=0;i<N;i++){
	cin >> X[i];
}


for(i=0;i<N;i++){
	for(j=0;j<N;j++){
		cin >> X[i][j];
	}
}
*/

C++: #include <iostream>
#include <cmath>
int main()
{
  int a, b;
  while (std::cin >> a >> b) {
    for (int i = 1; i < 7; i++) {
      if (a + b < pow(10, i)) {
        std::cout << i << std::endl;
        break;
      }
    }
  }
  return 0;
}

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

int main(){
int sum;
string truss;
  int a,b;
  while(cin>>a>>b) {
 sum=a+b;
 truss=to_string(sum);
 cout<<truss.size();
  }
  return 0;
}

C++: #include<iostream>
#include<math.h>
#include<cstdio>
using namespace std;
int main() {
	int a,b,sum;
	double ans;
	while(cin>>a>>b){
		sum=a+b;
		ans=log10((double)sum);
		cout<<(int)ans+1<<endl;
	}
	return 0;
}

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

int main(){
    int i, j;
    int a,b,c;
    // std::vector<int> avec, bvec;
    for (i = 0; i <= 200; i++){
        scanf("%d %d", &a,&b);
        c = a + b;

        for(j = 0; j < 8; j++){
            if (c / std::pow(10,j) < 1){
                printf("%d\n",j);
                break;
            }
        }
        // avec.push_back(a);
        // bvec.push_back(a);
    }

    return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int a,s,d;
	while(scanf("%d %d",&a,&s)!=EOF){
	d=a+s;
	if(d>=0&&d<=9){
		printf("1\n");
	}
	else if(d>=10&&d<=99){
		printf("2\n");
	}
	else if(d>=100&&d<=999){
		printf("3\n");
	}
	else if(d>=1000&&d<=9999){
		printf("4\n");
	}
	else if(d>=10000&&d<=99999){
		printf("5\n");
	}
	else if(d>=100000&&d<=999999){
		printf("6\n");
	}
	else if(d>=1000000){
		printf("7\n");
	}
	}
	return 0;
}

C++: #include<stdio.h>
int main(){
	while(1){
		int a,b,c,count=0;
		scanf("%d %d",&a,&b);
		c = a+b;
		while(1){
			c /10;
			count++;
			if(c==0)	break;
		}
		printf("%d",count);
	}
}

C++: #include <stdio.h>

int
main(void)
{
	char line[80];
	long a;
	long b;
	long c;
	int k = 1;

	while (gets(line)) {
		if (sscanf(line, "%ld %ld", &a, &b) == 2) {
			c = a + b;
			k = 1;
			while (c / 10 > 0) {
				k ++;
				c /= 10;
			}
			printf("%d\n", k);
		}
	}

	return 0;
}

C++: #include <iostream>
#include <math.h>
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 <stdlib.h>

int main(void){
  int c, i = 0, a, b, d;
  char tmp[8]; // 0 - 1000000
  while(c != EOF){
    while((c = getchar()) != EOF || c != '\n'){
      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 <bits/stdc++.h>
using namespace std;
int a, b;
int main() {
	while(~scanf("%d%d", &a, &b)) {
		printf("%d\n", to_string(a + b).size());
	}
}

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;
    scanf("%d %d", &a, &b);
    while(a!=0 && b!=0){
        num+= a%10;
        num = a/10;
        num+= b%10;
        num = b/10;
    }
     printf("\nSum of digits = %d", num);
    
}

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(1)
		{
			if(g/10>=1)
				c++;	
			else 
				break;
			g/=10;
		}		
		cout<<c+1<<endl;
	}
	return 0;
}