Go: package main

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

var sc = bufio.NewScanner(os.Stdin)

func Sliceconvtoi() []int {
	strs := strings.Split(sc.Text(), " ")

	var ints []int
	var x int

	for _, s := range strs {
		x, _ = strconv.Atoi(s)
		ints = append(ints, x)
	}

	return ints
}

func main() {
	for sc.Scan() {
		i := Sliceconvtoi()
		fmt.Println(int(math.Log10(float64(i[0]+i[1]))) + 1)
	}

}

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

using namespace std;

#define LOG(...) fprintf(stderr, __VA_ARGS__)
//#define LOG(...)
#define FOR(i, a, b) for(int i=(int)(a); i<(int)(b); ++i)
#define REP(i, n) for(int i=0; i<(int)(n); ++i)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define EXIST(s, e) ((s).find(e)!=(s).end())
#define SORT(c) sort(ALL(c))
#define RSORT(c) sort(RALL(c))
#define SQ(n) (n) * (n)

typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vb> vvb;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

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

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

int main(){
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    int a, b;
    while(std::cin >> a >> b){
        int cnt = 0;
        int r = a+b;
        while(r){
            r/=10;
            ++cnt;
        }
        std::cout << cnt << "\n";
    }
    return 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;
}
//while文の初期化の所で失敗した

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

using namespace std;

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

C++: #include <iostream>

using namespace std;
	int main() {
		int a,b,c,d;
		if(a<=1000000&&b<=1000000){
			for(int i=0;i<200;i++){
				cin>>a>>b;
				c=a+b;
				while(c>0,d++,c/=10);
				cout<<d<<endl;
			}
		}
		
	}

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

int main(){
    long long a,b;
    while(cin >> a >> b){
    long long sum = a + b;
    string str = to_string(sum);
    cout << str.length()<<endl;}

    return 0;
}

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

int a,b,c,hasil;

int main()
{
	while(!feof);
	{
		scanf("%d %d",&a,&b);
		hasil=1;
		c=a+b;
		while(c>=10)
		{
			c=c/10;
			hasil++;
		}
		printf("%d\n",hasil);
	}
	return 0;
}

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

int main() {
	int a, b;
	while(cin >> a >> b) {
		int c = a + b;
		
		if (c < 10) {
			cout << 1 << endl;
		} else if (c < 100) {
			cout << 2 << endl;
		} else if (c < 1000) {
			cout << 3 << endl;
		} else if (c < 10000) {
			cout << 4 << endl;
		} else if (c < 100000) {
			cout << 5 << endl;
		} else if (c < 1000000) {
			cout << 6 << endl;
		} else {
			cout << 7 << 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>
using namespace std;
int main(){
    int a,b;
    while(cin>>a>>b){
        cout << to_string(a+b).size() << endl;
    }
}

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

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define in(x) cin >> x
#define out(str) cout << str << endl

template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int a,b;

int main(){
    while(cin>>a>>b){
        cout<<(int)log10(a)+(int)log10(b)+2<<endl;
    }
}

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

int main(){
    vector<int> a,b;
    int a_,b_;
    while(cin >> a_ >> b_){
        a.push_back(a_);
        b.push_back(b_);
    }
    for(int i=0;i<a.size();i++){
        int c = 1;
        int s = a[i] + b[i];
        while(s >= 10){
            s /= 10;
            c++;
        }
        cout << c << endl;
    }
}

C++: #include <cstdio>
#include <cmath>
#define LOOP(index,times) for(int index=0;index<times;index++)
using namespace std;

int main(){

int a,b;

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

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

}
return 0;		
}

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

main(){
  int n, m;
  
  while(std::cin>>n){
    std::cin>>m;
    std::cout<<std::to_string(n+m).size()<<std::endl;
  }
}

C++: #include<iostream>
using namespace std;
int main()
{
int a,b;
int c[200][2];
for(int i=0;i<200,i++;)
{
cin>>a>>b;
c[i][0]=a;
c[i][1]=b;

}
for(int j=0;j<200,j++;)
{
if(c[j][1]+c[j][1]<10)
{
	cout<<1<<endl;
}
else if(c[j][0]+c[j][1]<100)
{
	cout<<2<<endl;
}
else if(c[j][0]+c[j][1]<1000)
{
	cout<<3<<endl;
}
else if(c[j][0]+c[j][1]<10000)
{
	cout<<4<<endl;
}
else if(c[j][0]+c[j][1]<100000)
{
	cout<<5<<endl;
}
else if(c[j][0]+c[j][1]<1000000)
{
	cout<<6<<endl;
}
else
{
	cout<<7<<endl;
}
}
return 0;
}

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

int main()
{
  int a,b;
  cin >> a >> b;
  cout << (int)log10(a+b) + 1 << endl;

  return 0;
}

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

using namespace std;

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

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

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<<6<<endl;continue;}
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

C++: 5 7
1 99
1000 999

C++: 
#include<stdio.h>
int main()
{
	int a,b,sum;
	int m=200;
	loop:scanf("%d,%d",&a,&b);
	if((a>=0&&a<=1000000)&&(b>=0&&b<=1000000))
	{
		sum=a+b;
	}
	else
	{
		printf("error\n");
		goto loop;
	}
	if(sum>999999)
		printf("7");
	else if(sum>99999)
		printf("6");
	else if(sum>9999)
		printf("5");
	else if(sum>999)
		printf("4");
	else if(sum>99)
		printf("3");
	else if(sum>9)
		printf("2");
	else
		printf("1");
		printf("\n");
		m--;
		if(m!=0)
	goto loop;
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
    int a,b,ans = 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;
}