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>
#include <cstdio>
#include <cmath>

int main() {
  int i;
  int a,b;
  while(scanf("%d %d",&a, &b) != EOF) {
    int c = a+b;
    for(i = 1; i < 9; i++) {
      if(c/(int)pow(10,i) == 0) {
	printf("%d\n",i);
	break;
      }
    }
  }

  return 0;
}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    string a, b;
    while(cin >> a >> b){
        printf("%d %d\n", a.length(), b.length());
    }
}

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

using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define REP(i,j,n) for(int i = j; i < n; i++)


int main(){

	int a,b;
	int sum = 0;
	cin >> a >> b;

	sum = a + b;
	
	int x = 1;

	while(sum / 10 > 0){
		x++;
		sum = sum / 10;
	}

	cout << x << endl;

	return 0;
}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(){
	int ab[200][2],f,i=0,a,g,k=0;
	while(cin>>f){
		scanf("%d %d",&ab[i][1],&ab[i][2]);
		i++;
	}
	for(int j=0;j<i;j++){
		a=ab[j][1]+ab[j][2];
		for(g=0;;g++){
			a=a/10;
			k++;
			if(a==0){
				printf("%d\n",k);
				break;
			}
		}
		k=0;
	}
	return 0;
}

C++: #include <stdio.h>int main( void ){
    int l = 0;
do{    int a,b;    scanf( "%d %d",&a,&b );      a = a + b;       int n = 1;      int j = 0;      while( true ){            if( a / n >= 1 ) n *= 10;            else               break;          j++;          }      printf( "%d",j ); }while( l < 200;l++ );    return 0;}

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

using namespace std;

int main()
{
	int a[200], b[200], n, ans=0;
	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;
		ans = 0;
	}
}

C++: #include<bits/stdc++.h>
using namespace std;

typedef long long ll;

int main(void)
{
    ll a , b;

    while(cin >> a >> b){

        a = a+b;

        b = 0;

        while(a!=0){
            b++;
            a/=10;
        }

        cout << b << endl;
    }

    return 0;

}

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

int main(){
const int INF=10000000;
int a,b,c,ans;
while(cin>>a>>b){
ans=1;
a+=b;
for(int i=0;i<INF;i++){
c=a%10;
a-=c;
if(a==0){break;}
if(a!=0){
ans++;
a/=10;}}
cout<<ans;}}

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


int main(){
    int a, b;

    while (scanf("%d%d", &a, &b) != EOF){
	int c = a + b;
	int digit = 1;
	while (c >= 10){
	    c = c / 10;
	    digit++;
	}
	cout << digit << endl;
    }
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,sum=0;
    cin>>a>>b;
    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;
return 0;
}

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

int main(){

  vector<long int> array1(6,0);
  vector<long int> array2(3,0);
  vector<int>      array3(3,1);

  for(int i = 0;i<6;i++){
    cin >> array1[i];
  }

  for(int i = 0; i < 3;i++){
    array2[i] = array1[2*i] + array1[2*i+1];
  }

  for(int i = 0; i < 3;i++){
    while(array2[i] / 10 != 0){

      array3[i]++;
      array2[i] /= 10;

    }
  }

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


    return 0;
}

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

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

using namespace std;
int i,a,b;
string s;

int main() {
	while(cin>>a>>b){
		a = a+b;
		s = std::to_string(a);
		cout << s.size() << endl;
	}
	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)) || ((1000000 < a) || (1000000 < b))){
			break;
		}

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

	return 0;
}

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

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

int stoi(std::string);
std::string itos(int);

int main(){
    int sum,digits[200]={0};
    std::string input,output;


    std::ios::sync_with_stdio(false);

    input = "";
    for (int i=0;i<200;i++){
        sum = 0;

        for (int j=0;j<2;j++){
            if((int)std::cin.eof()) goto end;
            std::cin >> input;
            sum += stoi(input);
        }
        output = itos(sum);
        digits[i] = (int)output.length();
    }
    end:
    for (int i=0;digits[i];i++){
        std::cout << digits[i] << std::endl;
    }
}

int stoi(std::string s){
    std::stringstream ss;
    int i;
    ss << s;
    ss >> i;
    return i;
}

std::string itos(int i){
    std::stringstream ss;
    std::string str;
    ss << i;
    ss >> str;
    return str;
}

C++: #include <iostream>

int calc_digit_number(int n){
	int ret = 0;
	while(n > 0){
		ret++;
		n /= 10;
	}
	return ret;
}

int main(int argc, char **argv){
	int a = 0;
	int b = 0;

	while(std::cin >> a >> b){
		std::cout << calc_digit_number(a + b) << std::endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		cin >> n >> m;
		sum = n + m;
		//cout << sum << endl;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

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

int main() {
	int a, b, c, d;
	while (~scanf("%d%d", &a, &b)) {
		if (a == 0) c = 1;
		else c = log10((double)a) + 1;
		if (b == 0) d = 1;
		else d = log10((double)b) + 1;
		printf("%d\n", c + d);
	}
}

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

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

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

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

C++: /*
filename:Volume0-0002-Digit Number
last edited at 2015/8/15 by chariskim
*/

#include<iostream>

int main(){
	
	int a,b,c,x,i,m=10,n;
	std::cin >>a>>b;
	
	c=a+b;
	
	for (x=1; 1; x++){
		m=10;
		for (i=1; i<x; i++) m*=10;
		n=c/m;
		if(n==0)break;
		
	}
	
	std::cout<<x<<"\n"; 
	
	return 0;
}