Go: package main

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

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	for scanner.Scan() {
		i := scanner.Text()
		var total int
		inputNum := strings.Fields(i)
		for _, v := range inputNum {
			num, err := strconv.Atoi(v)
			if err != nil {
				break
			}
			total += num
		}
		fmt.Println(DigitCount(strconv.Itoa(total)))
	}
}

func DigitCount(str string) int {
	return len(str)
}

C++: #include <iostream>
#include <vector>
#include <math.h>
using namespace std;
int main(){
	int a,b;
	int sum=0;
	int count=0;
	vector<int> digits;
	for(int i=0;i<200;i++){
	 cin >> a >> b;
	 sum = a + b;
	 digits.push_back(log10(sum)+1);
	}
	for(int i=0; i<digits.size();++i){
		cout << digits[i] << endl;
	}
	vector<int>().swap(digits);
	return 0;

}

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

C++: #include<iostream>

using namespace std;

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

C++: #include <iostream>
#include <string>
#include <sstream>

using namespace std;

 string IntToString(int num){
	stringstream ss;
	ss << num;
	return ss.str();
}


int main(void){
	int count = 0;
	while (count < 200){
		int a, b;
		cin >> a >> b;
		if ((a < 0) || (b < 0)){
			break;
		}

		int sum = a + b;
		string str = IntToString(sum);
		cout << str.length() << endl;
		++count;
	}

	return 0;
}

C++: #include<stdio.h>

int calc(int x,int y){
  int a,t,k =0;
  t = x+y;
  while(t >= 10){
    t = t/10;
    k += 1;
  }
  return k;
}
int main(void){
  int a,b;
  while(scanf("%d %d",&a,&b) != EOF){
    printf("%d",calc(a,b));
  }
}

C++: #include<stdio.h>
#include<string.h>
#include<math.h>
#include<iostream>
#include<algorithm>
#include<set>
#include<queue>
#include<string>
#include<vector>
#include<map>
#include<stack>
#include<list>
using namespace std;
#define inf 0x3f3f3f3f

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

C++: #include <iostream>

int main(){
  int a, b, c;
  int keta;

  while(cin >> a b){
    c=a+b;
    keta=1;
    while((c/=10)>0) keta++;
    printf("%d\n", keta);
  }
  
  return 0;
}

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

int main() {

	while(cin){
	unsigned int a, b;
	cin >> a >> b;

	int unsigned digit = 0, quotient = a + b;
	while(quotient != 0){
		quotient /= 10;
		digit++;
	}
	cout << digit << 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 if((x+y)<1000000)printf("6\n");
	else printf("7\n");
	}
	return 0;
}

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

int main() {
  int a, b, n, m;
  while(cin>>a>>b){
    m=0;
    n=a+b;

    while(n!=0){
      n/=10;
      m++;
    }

    cout << m << endl;
  }
  return 0;
}

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

using namespace std;

//?????°?±?????????¢??°Figure
int Figure(int a, int b){
    //a+b=0???????????????
    if((a+b) == 0){
        return 1;
    }
    else {
        int figure = (int) log10(a + b) + 1;
        return figure;
    }
}

int main(){
    int a = 0, b = 0;
    //????????????????????????????????° count
    int count = 0;
    //??????????´???????ans?????¨????????????200??¨???
    int ans[200];

    while(cin >> a >> b){
        ans[count] = Figure(a, b);
        count++;
    }

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

    return 0;

}

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

int main(){
	int a[200], b[200], damy, i, k;

	for(i = 0; i < 200; i++){
		cin >> a[i] >> b[i];
	}

	for(i = 0; i < 200; i++){
		damy = a[i] + b[i];
		for(k = 0; damy != 0; k++){
			damy /= 10;
		}
		cout << k <<endl;
	}

	return 0;
}

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


int judge(int n){
	if (n / 1000000 != 0) return 7;
	if (n / 100000 != 0) return 6;
	if (n / 10000 != 0) return 5;
	if (n / 1000 != 0) return 4;
	if (n / 100 != 0) return 3;
	if (n / 10 != 0) return 2;
	if (n / 1 != 0) return 1;
}


int main(){
	int a, b;
	int n , i , j;
	int x[200];
	j = 0;
	while (cin >> a >> b)
	{
		n = a + b;
		x[j] = judge(n);
		j++;
		cout << "#" << endl;
	}
	for (int i = 0; i < j; i++){
		cout << x[i] << endl;
	}

	return 0;
}

C++: #include<iostream>

 
using namespace std;
 
int main()
{
     unsigned int a,b,c,ans=0;//initializing numbers
    while(cin >> b >>c )//entering 2 numbers
    {
    a=b+c;//adding the 2 numbers
    while(a!=0)
	{ 
		a/=10; ans++;//dividing sum by 10 then adding ans by 1 for number of digits
    }
        cout << ans << endl;//print out how many digits
        
     }

   return 0;
}

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

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

return 0;
}

C++: #include <iostream>

int main(){
    int a,b;
    for(int g=0;g<200;g++){
    std::cin>>a>>b;
    if(a>=0&&b<=1000000){
    int e=a+b;
    int d=1;
    int f;
    
    for(int c=1;c<8;c++){
    	if(e/d>=1){
    		f=c;
		}
    	d=d*10;
	}
	std::cout<<f<<std::endl;
          

	
}
}
return 0;
}

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

int c = 0;

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

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

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

int dig(int total);
int dig(int total)
{  if(total<10)
       return 1;
    else
        return (1 + dig(total/10));
    
}

int main () 
{ 
int a=0;
int b=0;

do{
cin>>a;
cin>>b;

    }while(a<0 || a>1000000 || b<0 || b>1000000);

    int total = a+b;

return 0; 
}

C++: #include <iostream>
using namespace std;
int main(void){
    // Here your code !
    int a;
    int b;
    int num;
    
    cin>>a;
    cin>>b;
    cout<<a; cout<<" "; cout<<b<<endl;
      while(a<=0 && b<=0){
        a=a/10;b=b/10;
       a++;b++;
       cout<<num<<a+b;
    }
    
    



}

C++: #include<bits/stdc++.h>

using namespace std;

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

C++: #include <iostream>
#include <sstream>
int main()
{
        for(uint8_t i=0;i<200;i++)
        {
                std::string str;
                getline(std::cin, str);
                std::stringstream s(str);
                uint16_t a,b;
                s>>a>>b;
                uint16_t sum=a+b;
                uint8_t count;
                for(count=0;sum>0;count++)
                        sum=sum/10;
                printf("%u\n",count);
        }

        return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,sum=0,count;
    while(cin>>a>>b){
        count++;
        sum=a+b;
        if(sum<10)cout<<"1"<<endl;
        else if(sum<100)cout<<"2"<<endl;
        else if(sum<1000)cout<<"3"<<endl;
        else if(sum<10000)cout<<"4"<<endl;
        else if(sum<100000)cout<<"5"<<endl;
        else if(sum<1000000)cout<<"6"<<endl;
        else if(sum<10000000)cout<<"7"<<endl;
        else if(sum<100000000)cout<<"8"<<endl;
        
        if(count==200)break;
        
    }
    return 0;
}

C++: #include<iostream>

using namespace std;

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