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


using namespace std;

int main()
{

        int a,b;
        string input;
        int size = 0;
        int count = 0;

        while(cin >> a >> b)
        {
                b += a;
                input = to_string(b);
                size = input.size();
                cout << size << endl;
                count++;
                if(count == 199){break;}
        }

}

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

int main(void){
    std::vector<int> a,b;
    int x,y;
    while(std::cin>>x>>y){
      a.push_back(x);
      b.push_back(y);
    }
    for(int i=0;i<a.size();i++){
      std::cout<<a[i]+b[i]<<"\n";
    }
    return 0;
  }

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

int main() {
    int ch, a, b, sum;
    do {
        cin>>a>>b;
        sum = a + b;
        int count;
        for (count = 0; sum != 0; count++) {
            sum /= 10;
        }
        cout<<count<<endl;
        ch = getchar();
    }while (ch != EOF);
    return 0;
}

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

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

int main(void) {
    u_int a, b;

    while (std::cin >> a >> b) {
        std::cout << (int) log10 (a+b) + 1 << std::endl;
    }

    return 0;
}

C++: #include <iostream>
#include <cmath>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <sstream>
#include <string>
#include <cstdlib>
using namespace std;

template <class T> int streamvar(std::istream& in, T& var)
{
    if (!in) {
        return 1;
    }
    in >> var;
    if (in.fail()) {
        return 1;
    }
    return 0;
}
template <class T> int streamvec(std::istream& in, std::vector<T> &v)
{
    v.clear();
    string s;

    if (!in) {
        return 1;
    }
    getline(in, s);
    if (in.fail()) {
        return 1;
    }
    istringstream is(s);
    while (1) {
        T tmp;
        is >> tmp;
        if (is.fail())
            break;
        v.push_back(tmp);
    }
    return 0;
}

int getd(int input)
{
    int ret = 1;
    while (input /= 10) {
        if (input)
            ret++;
    }
    return ret;
}

int main(void)
{
    vector<int> v;
    int tmp;
    while (!streamvec(cin, v)) {
        cout << getd(v[0] + v[1]) << endl;
    }
    return 0;
}

C++: #include<cstdio>
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
  long long a,b,sum;
  int cnt;
  while(cin >> a >> b){
    sum = a + b;
    cnt = 0;
    while(sum>0){
      sum /= 10;
      cnt++;
    }
    cout << cnt << endl;
  }
}

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

using namespace std;

int main()
{
	int a, b;
	while (cin >> a){
		cin >> b;
		auto sum = a + b;
		stringstream ss;
		ss << sum;
		string str(ss.str());
		cout << str.size();
	}

}

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

int main(){
	while(true){
		long int a,b;
		cin >> a >> b;
		long int c = a + b;
		double r = log10(c) + 1;
		long int s = r;
		cout << s << endl;
		if(cin.eof()){break;}
	}
	return 0;
}

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

using namespace std;

int main(void)
{

	for(int i = 0; i < 3; i++){
		int a, b;
		scanf("%d %d", &a, &b);
		a+=b;
		int d;
		while(a > 0){
			a /= 10;
			d++;
		}
		cout << d << endl;
	}

	return 0;
}

C++: #include<stdio.h>
int main (void){
	int x1,x2,s=1,gou;
	scanf("%d",&x1);
	scanf("%d",&x2);
	gou = x1 + x2;
	if(gou < 10){
	}
	while(gou >= 10){
		gou = gou / 10;
		s = s+1;
	}
	printf("%d",s);	
	return(0);
}

C++: #include <stdio.h>
int main(){
	int a = 0,b = 0;
	int c = 0;
	int count = 1;
	while(scanf("%d %d",&a,&b)){
		c = a + b;
		while(1){
			if(c / 10 < 10){
				count++;
				break;
			}
			else{
				c /= 10;
				count++;
			}
		}
		printf("%d\n",count);
		count = 1;
	}
	return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=0;

	scanf("%d",&set);
	for(int i=0;i<set;i++) //input
		scanf("%d%d",&a[i],&b[i]);

	for(int i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		keta[i]=cnt;
		cnt=0;
	}

	for(int i=0;i<set;i++) //output
		printf("%d\n",keta[i]);

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77675";
	
	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<stdio.h>


int main(){
	char a[21];
	char b[21];
	int A;
	int B;
	int i;
	int l=1;
	fgets(a,sizeof(a),stdin);
	fgets(b,sizeof(b),stdin);
	sscanf(a,"%d", &A);
	sscanf(b,"%d", &B);
	i=A+B;
	while(i  >= 10){
		i=i/10;
		l=l+1;
	}
	printf("%d" ,l);
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776755555555555555555555555555555555555556";
	
	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 <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(cin >> a >> b){
		cout << digit(a + b) << endl;
	}
}

C++: #include <stdio.h>
int main()
{
  int a,b,sum,cou;
  while( scanf("%d %d",&a,&b)!=EOF ){
    //printf("%d%d",a,b);//
    sum=a+b;
    cou=0;
    while(1){
      if(sum<10)break;
      sum=sum/10;
      cou++;
    }
    printf("%d",cou+1);
  }
  return 0;
}

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

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>

using namespace std;

int main()
{
	char buf[2000];
	int a,b,c;

	while(scanf("%d%d",&a,&b)!=EOF){
		c=1;
		a+=b; while(a/=10) c++;

		cout<<c<<endl;

	}

}

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

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

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

int main() {

	int a, b, c,d;
	char e[100];

		cin >> a >> b;

		c=a+b;

		d = sprintf_s(e,"%d", c);

	cout << d << endl;

	return 0;
}