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 <sstream>
#include <string>

using namespace std;

void readData(vector<string>& input_data){
}

int perseString(string line) {
    stringstream ss;
    ss << line;

    int a, b;
    ss >> a >> b;

    return a + b;
}

int countDigit(int n){
    int cnt = 1;

    while(n /= 10)
        ++cnt;

    return cnt;
}

void mainRoutine(){
    vector<string> input_data;

    readData(input_data);

    for(int i = 0; i < input_data.size(); ++i){
        auto ret = perseString("100 200");
        cout << countDigit(ret) << endl;
    }
}

int main() {
    mainRoutine();

    return 0;
}

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

		int temp=a+b;
		int ans=1;
		while((temp/=10)>0)
		{
			ans++;
		}
	printf("%d\n",ans);
	}
}

C++: #include <iostream>
#include <string>   
using namespace std;
 
int main(){
int a[2],i = 0,b,c = 1;

cin >> a[0] >> a[1];
b = a[0] + a[1];
while(b >= 10){
	b = b/10;
	c++;
}
cout<<c<<endl;

}

C++: #include<bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
int main(){
  int a,b,ans=1,ten=10;
  cin>>a>>b;
  a+=b;
  while(a>=10){
    ans++;
    a/=10;
  }
  cout<<ans<<endl;
}

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

C++: /*#include <iostream>

using namespace std;

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


}*/
#include <iostream>
using namespace std;

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

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){
  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

//ofstream ofs("test.t");
//ofs << "testetete" << endl;
  //cerr << system("rm test.t") << endl;


return 0;
}

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

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

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

int main()
{
	int a,b;
	int i;	
	
	while(cin >> a >> b)
	{
		
		int n = 10;
		int i = 1;
		
		int s = a + b;
		
		while(1){
			double q = s / n;
			if (q == 0){
				cout << i << endl;
				break;
			}
			i++; n*=10;
		}
	}
	
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=0;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		if(cnt==200) break;
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

using namespace std;

int main() {
	int a, b;
	while(scanf("%d %d", &a, &b) != EOF){
		printf("%d\n", log10(a+b));
	}
	return 0;
}

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

using namespace std;

int main(){
	int a, b;
	while (EOF){
		cin >> a >> b;
		string s = to_string(a + b);
		cout << s.length() << endl;
	}
	return 1;
}

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

int main(){
  int a, b, s, x=0;

  while(cin >> a >> b){
    s=a+b;
    while (s>0){
      x++;
      s/=10;
    }
    cout << x << endl;
		 x=0;
		 
  }

  return 0;
}

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

int main(){
	int a, b, num;
	
	cin >> a >> b;
	num = a * b;
	while(num != 0){
		num /= 10;
		i++;
	}
	cout << i << endl;
    return 0;
}

C++: while gets ;p $_.split(" ").map{|i|i.to_i}.inject(:+).to_s.size;end

C++: #define scanf_s scanf
#include <stdio.h>
#include <iostream>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, i, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != 0) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (i = 0; i < cou; ++i) {
		if (i != 0) printf("\n");
		printf("%d", ans[i]);
	}
}

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

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    printf("%ld\n", std::to_string(a + b).size());
}

C++: #include <iostream>

using namespace std;

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

  return (0);
}

C++: #include <iostream>

int main(){
  int a, b, c;
  int i = 1;
  int num = 0;
  
  std::cin >> a;
  std::cin >> b;
  
  c = a + b;
  while(1){
    if(c/i!=0){
      num++;
    }else{
      break;
    }
  }
  std::cout << num << std::endl;
  
  return 0;
}

C++:  #include<iostream>
#define END EOF
using namespace std;
int digit(int);
int main(){
  int a,b,x;
  while(cin >>a>>b && a!=EOF){
    x=a+b;
    cout <<digit(x)<<endl;}
    return 0;
}

int digit(int x){
  int count=0;
  while(x>0){
    x/=10;
    count++;
  }
  return count;
}

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

int main(){
  int x, y;

  while(1){
    cin >> x >> y;
    cout << to_string(x + y).length() << endl;
    if(cin.eof()) {break;}
  }

  return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
  int cnt = 0,
      x, y;
  while(cin >> x >> y){
    if(cin.eof())
      break;
    if(x < 0 || y > 1000000 || cnt > 200)
      break;
    cnt = to_string(x+y).length();
    cout << cnt << endl;
  }
  return 0;
}

C++: 
#include <sstream>
#include<cmath>
#include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <iomanip>
#include <cassert>
using namespace std;
int main()
{
	int a, b;
	while (cin>>a>>b)
	{
		cout << to_string(a+b).size() << endl;
	}
	return 0;

}