Go: package main

import (
	"bufio"
	"fmt"
	"math"
	"os"
	"strconv"
)

var scanner = bufio.NewScanner(os.Stdin)

func nextString() string {
	scanner.Scan()
	return scanner.Text()
}

func nextInt() (int, error) {
	return strconv.Atoi(nextString())

}

func main() {
	scanner.Split(bufio.ScanWords)

	for {
		a, err := nextInt()
		if err != nil {
			break
		}
		b, _ := nextInt()

		s := a + b
		nDigits := int(math.Log10(float64(s))) + 1
		fmt.Println(nDigits)
	}
}

C++: /*
　　　　 ∧＿∧　にっぽんちゃちゃちゃ
　／＼（　・∀・）／ヽ
（ ●　と　　　つ　● ）　にっぽんちゃちゃちゃ
　＼/⊂、 ノ　　＼ノ
　　　　　し'
*/
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define repone(i,n) for(int i=1;i<(int)(n);++i)
#define repo(i,o,n) for(int i=o;i<(int)(n);++i)
#define Rep(j,n) for(int j=0;j<(int)(n);++j)
#define Repone(j,n) for(int j=1;j<(int)(n);++j)
#define all(v) (v).begin(),(v).end()
#define rall(v) (v).rbegin(),(v).rend()
#define int long long
#define MOD 1000000007
#define INF 9223372036854775807


signed main()
{
  string xyz ="";
int x=0,y=0,z=0,w=0,i=0,j=0,n=0;
std::vector<int> v;
while (std::cin >> x>>y) {
  z=x+y;
  i=1;
  for(;;){
    if(z/10==0){
      std::cout << i << '\n';
      break;
    }
    z/=10;
    i++;
  }
  /* code */
}
}

C++: #include <iostream>

using namespace std;

int main()
{
	int n1, n2, s;

	while (cin >> n1 >> n2) {
		int cnt = 0;
		for (s = n1 + n2; s > 0; s /= 10) {
			cnt++;
		}
		cout << cnt << endl;
	}
	return 0;
}

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


int main(){
	for(int i = 0; i <3; ++i){

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

	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=8500;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

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

int main() {
	long long int a, b, c;
	int x;
	bool flg = true;

	while (1) {
		cin>>a;
		if (a==0)
			break;
		cin>>b;

		c=a+b;

		x = 1;
		flg = true;
		while (flg) {
			if ((c=c/10)>0)
				x++;
			else
				flg = false;
		}
		cout<<x<<endl;
	}
	return 0;
}

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

using namespace std;

int main(){
	while (true){
	int a,b;
	cin>>a>>b;
	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>99){
		cout<<5<<endl;
	}
	else{ 
	cout<<1<<endl;
	}
	}
	}

C++: #include<string>
#include<algorithm>
#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int a,b;
	cin >> a>>b;
string stream ss;
  ss << number;
   string x=ss.str();
cout<<x.size()<<endl;
return 0;
}

C++: #include<iostream>
#include<string>
#include<vector>
#include<algorithm>
#include<iostream>
using namespace std;
int main()
{
	int a,b,sum,n;
	while (cin >> a >> b)
	{
		n=0;
		sum = a+b;
		while (sum != 0)
		{
			sum /= 10;
			n++;
		}
		cout<<n<<endl;
	}
	return false;
}

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

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

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

using namespace std;

int main()
{
	int num1[3], num2[3], sum[3];
	for (int i = 0; i < 3; i++)
	{
		cin >> num1[i] >> num2[i];
		sum[i] = num1[i] + num2[i];
	}
	
	for (int i = 0; i < 3; i++)
	{
		int n = 1;

		while (!((sum[i] % (int)pow(10, n)) == sum[i]))
			n++;

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

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

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

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

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

  return 0;
}

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

using namespace std;

int main() {
	int a, b;
	int c;

	while (cin >> a >> b) {
		c = a + b;
		if (c / 10 > 0) {
			if (c / 100 > 0) {
				if (c / 1000 > 0) {
					if(c / 10000 > 0) {
						if(c / 100000 > 0) {
							if(c / 1000000 > 0) {
								printf("7\n");
							} else {
								printf("6\n");
							}
						} else {
							printf("5\n");
						}
					} else {
						printf("4\n");
					}
				} else {
					printf("3\n");
				}
			} else {
				printf("2\n");
			}
		} else {
			printf("1\n");
		}
	}

	return 0;
}

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

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

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

for(int k=0;k<200;k++){
int i,j;
cin >> i >> j;
cout << i+j << endl;
}

return 0;
}

C++: #include <iostream>
#include <cmath>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
using namespace std;




int main()
{
	long long int a,b;
	char c1[15],c2[15];
	int count=0;
	int i;
	while(scanf("%lld %lld",&a,&b)==2)
	{
		itoa(a,c1,10);
		itoa(b,c2,10);
		i=0;
		while(i<strlen(c1))
		{
			if(c1[i]!='0')
			{
				count++;
			}
			i++;
		}
		i=0;
		while(i<strlen(c2))
		{
			if(c2[i]!='0')
			{
				count++;
			}
			i++;
		}
		cout<<count<<endl;
		count=0;

	}
}

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

using namespace std;

int main(void){
  int a,b;
  int sum;
  

  while(cin >> a >> b){
    int digit = 0;
    sum = a + b;
    while(sum > 0){
	digit++;
	sum /= 10;
    }
    cout << digit << endl;
  }
  return 0;
}

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

int main(){
	int a, b;

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

C++: #include <bits/stdc++.h>
using namespace std;
int main()
{
	int a, b;
	while(cin>>a>>b)
	{
		int sum = a + b;
		int cnt = 0;
		while(sum > 0)
		{
			sum /= 10;
			cnt++;
		}
		cout<<cnt<<endl;
	}
}

C++: #include <iostream>

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

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

int main(){
	int a, b;
	list<int> digit;
	
	while((cin>>a>>b).eof()){
		if((a+b)>0){
			string stream c << a+b;
			digit.push_back(c.str().size());
		}
		
	}
	list<int>::iterator it = digit.begin();
	while(it != digit.end()){
		cout << *it << endl;
		it++;		
	}
	
 	return 0;
}

C++: #include <iostream>
using namespace std;
int solve(int a,int b){
    int sum=a+b,ans=0;
    while(sum>0){
        ans++;
        sum/=10;
    }
    return ans;
}
int main(void){
    int a[300]={},b[300]={},i=0;
    cin>>a[0]>>b[0];
    cout<<solve(a[0],b[0])<<endl;
    a[0]=2000000;
    while(a[i]!=a[i+1]&&b[i]!=b[i+1]){
        i++;
        cin>>a[i]>>b[i];
    }
    for(int j=1;j<i;j++){
        cout<<solve(a[j],b[j])<<endl;
    }
    return 0;
}

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


int main(){

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

	return 0;
}

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

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

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

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