Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func main() {
	for sc.Scan() {
		s := strings.Split(sc.Text(), " ")
		a, _ := strconv.Atoi(s[0])
		b, _ := strconv.Atoi(s[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

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

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

#define REP(i,n) for(int i=0;i<(int)n;++i)

using namespace std;

void solver() {
    int a,b;
    while(cin>>a>>b){
        cout<<to_string(a+b).length()<<endl;
    }
}

int main() {
    solver();
    return 0;
}

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

using namespace std;

int main(){
	int num1,num2;
	char str[10];
	int i;

	// 値の入力
	cin >> num1 >> num2;

	//整形
	sprintf(str,"%d\0",(num1 + num2));

	// 文字数計測
	for(i=0;str[i] != '\0';i++){
	}

	// 文字数表示
	cout << i << endl;

	return 0;
}

C++: #include <iostream>

int main()
{
    while (1) {
        int a;
        int b;
        std::cin >> a;
        std::cin >> b;

        int c = a + b;
        int digit = 1;
        bool loop = true;
        while (loop) {
            if (c / 10 >= 1) {
                digit += 1;
                c = (c - (c % 10)) / 10;
            } else {
                loop = false;
                break;
            }
        }
        std::cout << digit << std::endl;

    }
}

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

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  int degit;
  while(cin>>a>>b){
    stringstream ss; ss<<a+b;
    string temp=ss.str();
    degit=temp.size();
    printf("%d\n",degit);
  }
  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(1) {
		cin >> a >> b;
		c = getDigital(a + b);
		cout << c << endl;
	} 
}

C++: #include<iostream>
using namespace std;
int main()
{
int a,b;
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 if(a+b<10000000)
{
	cout<<7<<endl;
}
else
{
	break;
}
}
return 0;
}

C++: #include<stdio.h>
int main(void)
{
    int a,b,i,n;
	scanf("%d %d",&a,&b);
	a=a+b;
	for(i=1;i<8;i++){
		if(a<10){
			break;
		}
		a=a/10
	}
	printf("%d\n",i);
	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.size() << endl;
  }
}

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

int main() {
	int a,b,c,d,e,f;
	cin>>f;
	for(int i=0;i<=f;i++){
	cin>>a>>b;
	c=a+b;
	d=c;
	e=1;
	while(true){
		if(d<10){
			break;
		}
		d=d/10;
		e=e+1;
	}
	cout<<e<<endl;
	}
	return 0;
}

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

int main()
{
	int value,value_2,count = 0;
	
	while(cin >> value >> value_2)
	{
		count += 2;
		while(value / 10 != 0)
		{
			value /= 10;
			count++;
		}
		while(value_2 / 10 != 0)
		{
			value_2 /= 10;
			count++;
		}

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

C++: #include<iostream>
using namespace std;
unsigned int num(unsigned int x){
  int r;
  while(x!=0){
  x= x/10;
    r++;
  }
  return r;
}
int main(){
  unsigned int a,b;
  cin>>a>>b;
   a+=b;
   cout<<num(a)<<endl;
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(void){
    int a,b;
    while(cin >> a >> b){
    a+=b;
    b=1;
        for(int i=1; i<=7; i++){
            b=b*10;
            if(a < b){
                cout << i << endl;
                break;
            }
        }
    }
}

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

int main() {

	while(1){
	unsigned int a, b;
	cin >> a >> b;

	int unsigned digit = 0, quotient = a + b;
	while(quotient != 0){
		quotient /= 10;
		digit++;
	}
	cout << digit << endl;
	}

	return 0;
}