Go: // 九九を出すだけ
package main
import (
	"fmt"
	"os"
	"bufio"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main(){
	sc.Split(bufio.ScanWords)
	defer out.Flush()
	for sc.Scan(){
	    s := nextIntIs()
	    sc.Scan()
	    t := nextIntIs()
        a := len(strconv.Itoa(s+t))
	    fmt.Fprintln(out, a)
	}
}

func next() string{
	sc.Scan()
	return sc.Text()
}

func nextInt() int{
	a, _ := strconv.Atoi(next())
	return a
}

func nextIntIs() int{
	a, _ := strconv.Atoi(sc.Text())
	return a
}

C++: #include<iostream>
using namespace std;
int main(){

	double a,b,i=0,c;

	cin>>a>>b;
	while(i<200||a!=EOF){
		c=a+b;
		if(c*0.000000000000001>=1){
			cout<<"16"<<endl;
		}else if(c*0.00000000000001>=1){
			cout<<"15"<<endl;
		}else if(c*0.0000000000001>=1){
			cout<<"14"<<endl;
		}else if(c*0.000000000001>=1){
			cout<<"13"<<endl;
		}else if(c*0.00000000001>=1){
			cout<<"12"<<endl;
		}else if(c*0.0000000001>=1){
			cout<<"11"<<endl;
		}else if(c*0.000000001>=1){
			cout<<"10"<<endl;
		}else if(c*0.00000001>=1){
			cout<<"9"<<endl;
		}else if(c*0.0000001>=1){
			cout<<"8"<<endl;
		}else if(c*0.000001>=1){
			cout<<"7"<<endl;
		}else if(c*0.00001>=1){
			cout<<"6"<<endl;
		}else if(c*0.0001>=1){
			cout<<"5"<<endl;
		}else if(c*0.001>=1){
			cout<<"4"<<endl;
		}else if(c*0.01>=1){
			cout<<"3"<<endl;
		}else if(c*0.1>=1){
			cout<<"2"<<endl;
		}else
				cout<<"1"<<endl;
		i++;
		cin>>a>>b;
		}
			return 0;
	}

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

int main() {
	int a[200]={};
	int b[200]={};
	int c=0;
	int d=0;
	int output=0;
	
	for(int i=0;i<200;i++){
			cin >> a[200] >>b[200];
	}

	
	for(int i=0;i<200;i++){
		c=a[i]+b[i];
		for(int x=1;x<100;x++){
			for(int y=0;y<x;y++){
				d=d*10;
			}
			if(c<d){
				cout <<x;
				break;
			}
			d=0;
		}
	}
	
	
	
	
	return 0;
}

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

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755555555555555555555555555555555555555";
	
	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>
using namespace std;
int main(void) {
	long long a, b, s, x;
	while (cin >> a >> b) {
		x = 0;
		s = a + b;
		while (s >= 1) {
			x++;
			s = s / 10;
		}
		cout << x << endl;
	}
	return 0;
}

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

using namespace std;
int a,b;
int s;
int Count;
int main(){
  for(int i = 0;i < 3;i++){
  Count = 0;
  scanf("%d %d",&a,&b);
  s = a+b;
  for(; s !=0; s/=10){
    Count++;
  }
  cout << Count<<endl;
  }
}

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


int main(){
	int a;
	int b;
	int c;
	int f = 1;

	cin >> a >> b;

	c = a + b;

	while(1){
		c = c / 10;

		if(c <= 0){
			break;
		}
		++f;
	}

	cout << f;

	return 0;
}

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

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

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


using namespace std;

int main()
{
	int a,b;
	string input;
	int size = 0;
	//cout << "input two numbers" << endl;
	cin >> a >> b;
	b += a;
	input = to_string(b);
	size = input.size();	
	cout << size << endl;
}

C++: #include <string>
#include <algorithm>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <utility>
#include <vector>


using namespace std;

int digit(int x){
	int res = 0;
	while(x != 0){
		res++;
		x /= 10;
	}
	return res;
}

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

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

int main() {
  int a, b;
  while(cin >> a >> b) {
    char buff[100];
    sprintf(buff, "%d", a+b);
    cout << strlen(buff) << endl;
  }
  return 0;
}

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


int main(){

	int a,b;
	cin >> a >> b;
	a = a + b;
	cout << (int)log10(a)+1 << endl;

	return 0;
}

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;
}