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,c,d;
		c=a+b;
		if(a<=1000000&&b<=1000000){
			for(int i=0;i<200;i++){
				for(int j=0;j<8;j++){
				d=c/10;
				if(d<1){
					cout<<j+1<<endl;}
				else {
					break;
				}
			}
		}
		return 0;
	}

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

using namespace std;

int main(){
	int a,b;
while(eof){
	}
	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>9){
		cout<<2<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}

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

using namespace std;

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

    return 0;
}

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

int main() {
    int a,b;
    while(cin >> a >> b){
        int ans = 0;
        ans = (int)log10(a+b)+1;
    cout << ans << "\n";
    }
    
return 0;
}

C++: main(a,b){
  for(;~scanf("%d%d",&a,&b);puts(&a))
    a=log10(a+b)+49;
}

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>
using namespace std;

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

	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[3]={0},b[3]={0},sum[3]={0},keta[3]={0};
	int x,y;

	for(x=0;x<3;x++)
	{
		scanf("%d %d",&a[x],&b[x]);
		sum[x]=a[x]+b[x];
		printf("%d\n",sum[x]);
	}

	for(x=0;x<3;x++)
	{
		while(sum[x]!=0)
		{
			sum[x]=sum[x]/10;
			keta[x]++;
		}
		printf("%d\n",keta[x]);
	}

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="777";
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		if(i<cunning.size()){
			cout<<cunning[i]<<endl;
			continue;
		}
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

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

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

using namespace std;

int main()
{
	int a, b;
	
	cin >> a >> b;
	
	a = a + b;
	a = (int)log10(a);
	printf("%d\n",a+1);
	
}

C++: #include <iostream>
#include <cstdio>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>

using namespace std;

int main (int argc, char *argv[]) {
    int a, b;
    while (scanf("%d %d", &a, &b)) {
        int sum = a + b;
        int cnt = 1;
        while (sum/10 != 0) {
            sum /= 10;
            cnt++;
        }
        cout<<cnt<<endl;
    }
    return 0;
}

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

int main() {
	long a,b,c,ans;
	for(long i  = 0 ; i  <= 200; i++){
		cin >> a >> b;
		if(0 <= a  && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

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

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

C++: #include<iostream>                                              
#include<cmath>                                                 
using namespace std;                                            
                                                                
int main(void) {                                                
  int a,b;                                                      
  while (cin >> a >> b) {                                       
    a = log10(a+b)+1;                                           
    cout << a << endl;                                          
  }                                                             
  return 0;                                                     
}

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

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

  return 0;
}

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

int main() {

	int a, b, c;
	char e[100];

	while (cin >> a >> b) {

		c = sprintf_s(e, "%d", a+b);

		cout << c << endl;
	}

	return 0;
}

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

int main()
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=2,i=0;

	while( cin >> a[i] >> b[i]){
		i++;
	}

	for(i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		cout << cnt << endl;
		cnt=0;
	}

	return 0;
}

C++: #include <iostream>

int main(void){
while (!std::cin.eof()){
int a,b,c,i;
std::cin >> a >> b;
c=a+b;

while(!(c/=10))
i++;

std::cout << i << std::endl;
}

C++: #include <iostream>


using namespace std;

int main(){
	int a;
	int b;
	

	for (int i = 0; i <= 201; i++){
		cin >> a >> b;
		int  c = a + b;
		if (c >= 0 && c < 10){
			cout << "1" << endl;
		}
		else if (c >= 10 && c < 100){
			cout << "2" << endl;
		}
		else if (c >= 100 && c < 1000){
			cout << "3" << endl;
		}
		else if (c >= 1000 && c < 10000){
			cout << "4" << endl;
		}
		else if (c >= 10000 && c < 100000){
			cout << "5" << endl;
		}
		else if (c >= 100000 && c < 1000000){
			cout << "6" << endl;
		}
		else if (c >= 1000000 && c < 10000000){
			cout << "7" << endl;
		}
	}
	
	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[200], p = 0;
	for (int i = 0; i < 200; i++) 
	{
		cin >> a[i] >> b[i];
		ans[i] = 0;
		n = a[i] + b[i];
		while (n >= 1) 
		{
			n /= 10;
			ans[i]++;
		}
		p++;
	}
	for (int j = 0; j < p; j++) {
		cout << ans[j] << endl;
	}
}

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

int main(){
	cin.tie(0);
   	ios::sync_with_stdio(false);

   	int a,b,c,ans;

	while(cin >> a >> b){
   		c = a + b;
   		ans = (int)log10((double)c) + 1;
   		cout << ans << "\n";
	}
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <queue>
#include <bitset>
#include <set>
#include <queue>

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

const float PI = 3.1415926;
static const int INFTY = (1<<30);

using namespace std;

typedef long long ll;
typedef long double ld;

ll n, a, b, res;

int main() {
  while(cin >> a, a != EOF) {
    cin >> b;
    n = a+b;
    if(n %10 == 0) n++;
    res = 0;
    
    while(n>0) {
      n /= 10;
      res++;
    }
    cout << res << endl;
  }

  return 0;
}

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

using namespace std;

int main(){
	int i,j,k,ans=0;

	
	while(cin >> i >>j ){
	k=i+j;
	while(k!=0){ k/=10; ans++;}
        cout << ans << endl;
		ans=0;

}
}