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<cstdio>
#include<iostream>
#include<cstring> // ??????????????????????±???????????????????
using namespace std;

int main(){
	int a,b,s=0,l;
	while( cin >> a >> b  ){
		char str[100];
		s=a+b;
		itoa(s,str,10); // s???10?????°??§??????????????????
		l = strlen(str); // ???????????????????????????
		cout << l << "\n";
	}
	return 0;
}

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

int main(){

	int a, b;
	while (cin >> a >> b)
		cout << to_string(a + b).length() << endl;
	return 0;
}

C++: #include <stdio.h>
int main()
{
	int a, b;
	while (scanf("%d%d",&a,&b)!= EOF)
	{
		int i = 0;
		a = a + b;
		while (a>0)
		{
			a = a / 10;
			i++;

		}
		printf("%d\n", i);
	}
}

C++:      #include <iostream>
    #include <math.h>
    using namespace std;
     
    int main() {
    int a,b,c;
    while(cin>> a>>b){
    c=a+b;
    int d;
    for(int i=0;i<8;i++){
    if(pow(10,i)<=c && c<pow(10,i+1)){
    d=i+1;
    }
    }
    cout<< d <<endl;	
    }
    return 0;
    }

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


int main()
{
	int a,b;
	scanf("%d %d",&a,&b);
	if(a + b != 0){
		printf("%d",(int)log10((double)(a+b)) + 1);
	}else{
		printf("0");
	}
	return 0;
}

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

int main()
{
	int a;
	int b;

	while (cin >> a >> b)
	{
		int n = a + b;

		if (n / 10 == 0)
		{
			cout << 1 << endl;
		}
		else if (n / 10 >= 1 && n / 10 <= 9)
		{
			cout << 2 << endl;
		}
		else if (n / 10 >= 10 && n / 10 <= 99)
		{
			cout << 3 << endl;
		}
		else if (n / 10 >= 100 && n / 10 <= 999)
		{
			cout << 4 << endl;
		}
		else if (n / 10 >= 1000 && n / 10 <= 9999)
		{
			cout << 5 << endl;
		}
		else if (n / 10 >= 10000 && n / 10 <= 99999)
		{
			cout << 6 << endl;
		}
		else if (n / 10 >= 100000 && n / 10 <= 999999)
		{
			cout << 7 << endl;
		}
	}
}

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

using namespace std;

int digit(int a)
{
  int cnt = 0;
  
  while(a)
    {
      a /= 10;
      cnt++;
    }
  return cnt;
}
int main(){
  int a,b;

  while(1)
    {
      int n = 0;
      cin >> a >> b;

      n = digit(a+b);

      cout << n << endl;
    }
  return 0;
}

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

C++: #include <iostream>

using namespace std;

int main(void){
  int a,b;
  while(cin>>a){
    int digit=0;
    cin>>b;
    int sum=a+b;

    while(sum!=0){
      ++digit;
      sum/=10;
    }

    cout<<digit<<endl;
  }
  return 0;
}

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

int keta(int x){
	int i=0;
	while (x/pow(10,i)>=1){
		i++;
	}
	if (x==0){
		return 1;
	}
	else
	return i;
	}
int main(){
	 int a1,b1;
	while(cin>>a1>>b1){
cout<<keta(a1+b1)<<endl;
	}
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <functional>
inline int recfunc(int n,int c){
  c++;
  if(n>=10)return recfunc(n/10,c);
  else{return c;}
}
int main(){
  int a,b;
  using std::cin;
  while(cin>>a>>b){
    if(cin.eof())break;
    int c = a + b;
    using std::cout;
    using std::endl;
    cout<<recfunc(c,0)<<endl;
  }
  return 0;
}

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;

	while(cin >> a >> b){

		int x = 1;
		int sum = a + b;

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

	return 0;
}

C++: #include<iostream>
#include<stdio.h>
using namespace std;
int cnt;
int keta(int n){
  if(n>0){
    cnt++;
    return keta(n/10);
  }else{
    return cnt;
  }
}
int main(){
  int a,b;
  int n;
  while(scanf("%d %d",&a,&b)!=EOF){
    cnt=0;
    a+=b;
    n=keta(a);
    cout<<n<<endl;
  }
  return 0;
}

C++: #include <iostream>
#include <cstdio> 
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <stack>
#include <queue>
#include <algorithm>
#include <complex>
using namespace std;

typedef pair<int, int> pii;
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<string> vs;

#ifndef typeof
#define typeof __typeof__
#endif // typeof
 
#define all(c) (c).begin(), (c).end()
#define rall(c) (c).rbegin(), (c).rend()
#define tr(c, i) for(typeof((c).begin()) i = (c).begin(); i != (c).end(); i++)
#define rtr(c, i) for(typeof((c).rbegin()) i = (c).rbegin(); i != (c).rend(); i++)
#define repby(i, a, b, step) for(typeof(b) i = (a); i < (b); i += (step))
#define repab(i, a, b) repby(i, (a), (b), 1)
#define rep(i, n) repab(i, 0, (n))
#define pb push_back
#define sz(c) int((c).size())

int digit_num(int x)
{
  int res = 0;

  do {
    res++;
    x /= 10;
  } while (x);

  return res;
}


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

  while (cin >> a >> b) {
    cout << digit_num(a+b) << 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(e, "%d", a+b);

		cout << c << endl;
	}

	return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int main() {
	int a, b, c,i, j;
	cin >> a >> b;
	for (i = 0; a < 10; i++) { c = a / 10; a = c; }
	for (j = 0; b < 10; j++) { c = b / 10; b = c; }
	c = a + b;
	cout << c << endl;
	return 0;
}

C++: main(a,b,i=1,x){for(scanf("%d%d",&a,&b),x=a+b;x=x/10;i++);printf("%d\n",i);}

C++: #include<iostream>
#include<cstdio>
#include<string>
int main(){
    int a, b;
    while(~scanf("%d%d", &a, &b)){
        std::string s = std::to_string(a+b);
        printf("%d\n", s.length());
    }
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

#pragma warning(disable:4996)
#define MAX_DATA (201)
int main()
{
	char Work[MAX_DATA][256];

	int Num[2];
	int Divide;
	int nCnt2,nCnt = 0, Result, Keta = 1;

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
		gets(Work[nCnt2]);

	for (nCnt2 = 0; nCnt2 < MAX_DATA; nCnt2++)
	{
		for (nCnt = 0; Work[nCnt] != '\0'; nCnt++)
		{
			if (Work[nCnt2][nCnt] == ' ')
			{
				char Work2[256];
				char Work3[256];

				strcpy(Work2, &Work[nCnt2][nCnt]);

				Work[nCnt2][nCnt] = '\0';

				strcpy(Work3, Work[nCnt2]);

				Num[0] = atoi(Work3);
				Num[1] = atoi(Work2);
				break;
			}
		}

		Result = Num[0] + Num[1];

		Keta = 1;
		for (nCnt = 0; ;nCnt++)
		{
			Result = Result / 10.0f;

			if (Result > 0)
				Keta++;
			else
				break;
		}

		printf("%d\n", Keta);
	}
	
	return 0;
}

C++: #include<iostream>

using namespace std;

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

  return 0;
}

C++: #include <iostream>

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

while(c/=10)
i++;

std::cout << i+1 << std::endl;
}
return 0;
}