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

int main()
{
  long n1, n2;
  int ans = 0;
  cin >> n1 >> n2;
  long sum = n1 + n2;
  while(sum > 0){
    sum /= 10;
    ans++;
  }
  ans = (n1 == 0 & n2 == 0) ? 1 : ans;
  cout << ans << endl;
}

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

int main() {
    std::vector<int> digits;
    int a, b;
    while (scanf("%d %d", &a, &b) != EOF)
    {
        int sum = a + b;
        int t = sum / 10;
        int digit = 0;
        while (t > 0) {
            digit ++;
            t = t / 10;
        }
        digits.push_back(digit);
    }

    for (int i = 0; i < digits.size(); i++) {
        std::cout << digits[i] << std::endl;
    }

    return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int a,b;
    while(cin>>a>>b)
    {
        int d,sum=0;
        sum=a+b;
        for(d=1;sum>=10;++d){
            sum/=10;
        }
        if(sum)cout<<d<<endl;
        else cout<<0<<endl;
    }
    return 0;
}

C++: #include <iostream>
#define REP(i,n) for(int i=0;i<n;i++)
using namespace std;

int main() {
    int a,b,c;
    REP(j,200){
    if(!cin)
        return 0;
    cin >> a >> b;
    c = a+b;
    REP(i,10){
        c/=10;
        if(c==0){
            cout << i+1 << "\n";
            break;
        }
    }
    }
}

C++: #include<bits/stdc++.h>
using namespace std;

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

C++: #include <iostream>

using namespace std;

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

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    vector<int> v1, v2;
    int n, m;
    while(cin) {
        cin >> n >> m;
        v1.push_back(n);
        v2.push_back(m);
    }
    
    for(int i=0; i+1<v1.size(); i++) {
        int count = 0;
        int num = v1[i] + v2[i];
        while(num > 0) {
            num /= 10;
            count++;
        }
        cout << count << endl;
    }
    return 0;
}

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

int main(){
	int a, b, ab, digits[200], cnt=0, i;
	while(cin>>a>>b){
		digits[cnt]=1;
		ab = a+b;
		while(ab/=10){
			digits[cnt]++;
		}
		cnt++;
	}
	for(i=0;i<cnt;i++){
		cout<<digits[i]<<endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b = 1;
    int ans,line = 0;
    
    for (int i = 0; i < 3; i++){
        std::cin >>a>>b;
        ans = a + b;
        ans /= 10;
        if(ans  <= 9){
            ans = 2;
        }
        else if(ans <= 99){
            ans = 3;
        }
        else if(ans <= 999){
            ans = 4;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

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

int main(){

	int a[2];
	cin >> a[0] >> a[1];
	int check=a[0]+a[1],retval=1;
	while(check>=10){
		check/=10;
		retval++;
	}
	cout << retval << endl;

    return 0;
}

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

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

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

using namespace std;

typedef long long ll;

int num_of_keta(int x) {
  int ret = 0;

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

  return ret;
}

int main() {
  int x, y;

  while(cin >> x >> y) {
    std::cout << num_of_keta(x+y) << std::endl;
  }
}

C++: #include<stdio.h>
int main(void)
{
	int i,j,cnt=1,a,b,c;
	for(j=0;j<3;j++){
		scanf("%d %d",&a,&b);
		c=a+b;
		for(i=0;c!=0;i++){
			c/=10;
		}
		printf("%d\n",i);
	}
	return 0;
}

C++: #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
        int n,m,sum,c=0;
        }
        while(scanf("%d %d",&n,&m)!=EOF){
            sum=n+m;
            if(sum==0){
                c++;
            }
            while(sum!=0){
                sum=sum/10;
                c++
            }
        }
        cout<<c;
        
    }

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

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

int getDigital(int sum) {
	int a=1;
	while ( sum / 10 ) {
		a++;
		sum /= 10;
	}
	return a;
}

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

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

C++: #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <cmath>

using namespace std;

int main()
{
	int a;
	int b;

	while (cin >> a >> b) {
		//scanf("%d%d", &a, &b);
		if (a + b == 0) printf("%d\n", 1);
		else printf("%d\n", (int)log10(a + b) + 1);
	}

		return (0);
	
}

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

using namespace std;

int main()
{
	int digit;
	int a = 0, b = 0;
	string sum;

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

	return 0;

}

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

using namespace std;

int main() {
	while(true) {
		int a,b;
		if(scanf("%d%d", &a, &b)<2)break;
		a+=b; b=0;
		while(a)b++,a/=10;
		printf("%d\n",b);
	}
	return 0;
}

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

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

C++: ///
// File:  0002.cpp
// Author: ymiyamoto
//
// Created on Sat Nov  4 15:39:12 2017
//

#include <cstdint>
#include <iostream>

using namespace std;

int32_t main()
{
  while (true) {
    uint32_t a, b;
    cin >> a >> b;
    if (cin.eof()) break;
    cout << to_string(a + b).size() << endl;
  }

  return 0;
}

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

int main(){

  double a, b;

  while( cin >> a >> b ){
    cout << fabs(floor( log10( a+b ) )) + 1 << "\n";
  }

}

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

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

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

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

C++: #include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
int main(void) {
  int a, b, sum;
  double cnt;
  while(scanf("%d %d", &a, &b) != EOF) {
    sum = a + b;
    cnt = log10(sum);
    cout << (int)cnt + 1 << endl;
  }
  return 0;
}

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

int main(){
	int a,b,i,sum=0;
	
	while(scanf("%d",&a) != EOF){
		cin>>b;	
		a=a+b;
		while(a!=0){
			a = a / 10;
			sum++;
		}

		cout<<sum<<endl;
		sum=0;
	}
    return 0;
}