Go: package main

import (
  "fmt"
  "unicode/utf8"
)


func main() {
  var a int
  var b int
  for _, err := fmt.Scan(&a, &b); err == nil; _, err = fmt.Scan(&a, &b) {
    fmt.Println(utf8.RuneCountInString(fmt.Sprint(a+b)))
  }
}

C++: #include <iostream>

using namespace std;

void digit();

int a, b;

int main() {


	while(cin >> a >> b) {
		digit();
	}

	return 0;

}

void digit() {
	
	int i=0;
	a+=b;

	while(a!=0) {
		a/=10;
		i++;
	}

	cout << i << endl;

}

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

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

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

C++: #include<stdio.h>

int main(){
	int a, b;
	scanf("%d %d", &a, &b);

	int s = a + b;
	int d = 1;
	while(1){
		if(s >= 10){
			s = s/10;
			d++;
		}else{
			break;
		}
	}

	printf("%d\n", d);

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

int main() {
	int a, b;

	while (cin >> a >> b) {
		int sum, i;
		sum = a + b;
		for (i = 0; sum > 9;i++){
			sum /= 10;
		}
		cout << i+1 << endl;
	}

	return  0;
}

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

using namespace std;

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

	while(fgets(buf,sizeof(buf),stdin)!=NULL){
		c=1;
		a=atoi(strtok(buf," ")); b=atoi(strtok(NULL,"\n"));
		a+=b; while(a/=10) c++;

		cout<<c<<endl;

	}

}

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

int a, b;
int _sum;

int main() {
	while (1) {
		if (std::cin.eof())
			break;
		std::cin >> a >> b;
		int i = 1;
		a += b;
		while (1) {
			a /= 10;
			if (a == 0)
				break;
			++i;
		}
		_sum = i;
		std::cout << _sum << std::endl;
	}
	return 0;
}

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

int main(){
	int a[400]={0};
	int i=0,n=0,s=0,d=0;
	while(cin>>a[i++]);n=i-1;
	
	for(int j=0;j<n;j+=2){
		cout<<a[j]<<" "<<a[j+1]<<endl;
	}
	
	for(int j=0;j<n;j+=2){
		s=a[j]+a[j+1];
		d=(int)log10((double)s);d++;
		cout<<d<<endl;
	}
	
	return 0;
}

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

C++: #include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
    int a , b;
    while( cin >> a >> b ){
        stringstream ss;
        ss << a+b ;
        string str = ss.str();
        cout << str.size() << endl;
    }
}

C++: #include <stdio.h>

using namespace std;


int main(){
	int a,b,count,s;

	while(scanf("%d %d",&a,&b)!=EOF){
		count=0;
		s=a+b;
		while(s!=0){
			s/=10;
			count++;
		}
		printf("%d\n",count);
	}

    return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int a, b;
	int sum;
	int ans;
	
	while (scanf("%d %d", &a, &b) != EOF){
		sum = a + b;
		ans = 0;
		
		while (sum){
			ans++;
			sum /= 10;
		}
		
		printf("%d\n", ans);
	}
	
	return (0);
}

C++: #include <iostream>
int main(void){
	int a,b;
    while (std::cin>>a>>b){
		a+=b;
		b=0;
		do{b++,a/=10;}while(a);
        std::cout<<b<<"\n";
    }
}

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

int main(){

	int a;
	int b;

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

C++: #include<stdio.h>

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

    while(scanf("%d %d",&a,&b) !=EOF){

        printf("%d\n",a+b);

    }


    return 0;
}

C++: #include<stdio.h>
#include<math.h>
int main(void)
{
	int n,a,s,w,i,x,c;
	while(scanf("%d %d",&n,&a)!=EOF)  {
//		c=0;
		w=n+a;	
		for(i=0;w!=0;i++){		
			w=w/10;
//			c++;	
		}
		printf("%d\n",i);
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	long long a,b,i,ans,sum=0;
	while(cin>>a>>b){
		ans=a+b;
		for(i=0;ans>0;i++){
			ans=ans/10;
			sum=sum+1;
		}
		cout<<sum<<endl;
		sum=0;
	}
	return 0;
}

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

using namespace std;

int main(){
  string a, b;
  while(cin >> a >> b){
    while(a.size() > b.size()) b = "0" + b;
    while(a.size() < b.size()) a = "0" + a;
    int c = 0;
    for(int i=a.size()-1;i>=0;i--){
       c = (a[i]-'0'+b[i]-'0'+c)%10;
    }
    cout << a.size() + c << endl;
  }
}

C++: 
  #include<iostream>
using namespace std;
int digit(int ,int);

int main(){
  long long a,b;
  for(int i=0;i<200;i++){
    cin >>a>>b;
    cout <<digit(a,b)<<endl;

 }
  return 0;

}


int digit(int a,int b){
  int count=1,x;
  x=a+b;
  while(1){
    if(x/10<1)break;
  x/=10;
  count++;
}
  return count;}

C++: #include<stdio.h>
#include<iostream>
using namespace std;
int main(void)
{
    __int64 a,b;
    while(scanf("%I64d %I64d",&a,&b)!=EOF)
    {
       __int64 sum;
       sum=a+b;
       int j=0;
       while(sum!=0)
       {
         sum/=10;
         j++;
       }
       printf("%d\n",j);
    }
    return 0;
}

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

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

using namespace std;

int a, b;

void solve(int n) {
	if (!n) return;
	++b, solve(n / 10);
}

int main() {
	while (scanf("%d%d", &a, &b) != EOF) {
		a += b, b = 0;
		solve(a);
		printf ("%d\n", b); 
	}
	return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int a,b,c,ans;
	for(int i = 0; i < 200; i++){
		cin >> a >> b;
		if(0 <= a && 0 <= b && b <= 1000000){
		ans = 0;
		c = a + b;
		while(c!=0){
		c = c / 10;

		++ans;
	}
	}
	cout << ans << endl;
	}
	return 0;
}

C++: #define scanf_s scanf
#include <string>
#include <stdio.h>
#include <math.h>
#include <stack>
#include <queue>
#include <list>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
#define MAX 200
int main(void)
{
	int a, b, sum, cou = 0;
	int ans[MAX] = { 0 };
	while (scanf_s("%d %d", &a, &b) != EOF) {
		sum = a + b;
		++ans[cou];
		if (sum != 0){
			while (1) {
				if (sum <= 1) break;
				sum /= 10;
				++ans[cou];
			}
		}
		++cou;
	}
	for (int i = 0; i < cou; ++i) {
		printf("%d\n", ans[i]);
	}
}

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

using namespace std;

void readData(vector<string>& input_data){
    string buff;
    while(getline(cin, buff))
        input_data.push_back(buff);
}

int perseString(string line) {
    stringstream ss;
    ss << line;

    int a, b;
    ss >> a >> b;

    return a + b;
}

int countDigit(int n){
    int cnt = 1;

    while(n /= 10)
        ++cnt;

    return cnt;
}

void mainRoutine(){
    vector<string> input_data;

    readData(input_data);

    for(int i = 0; i < input_data.size(); ++i){
        auto ret = perseString(input_data[i]);
        cout << countDigit(ret) << endl;
    }
}

int main() {
    mainRoutine();

    return 0;
}

C++: #include <iostream>

using namespace std;
int main()
{
	int a,b;
	while (1){
		cin >> a;
		if (a == EOF) return;
		cin >> b;
		if (b == EOF) return;
		cout << a + b << endl;
	}
}