Go: package main

import (
	"fmt"
	"strconv"
)

func main() {
	result := make([]int, 0, 200)

	for {
		var a, b int
		scanCount, _ := fmt.Scanf("%d %d", &a, &b)
		if scanCount == 2 {
			result = append(result, a+b)
		} else {
			break
		}
	}

	for _, v := range result {
		length := len(strconv.Itoa(v))

		fmt.Println(length)
	}
}

C++: #include <iostream>
using namespace std;
int main(){
    int a,b,c;
    while(cin >> a >> b){
        c = 10;
        for(int i = 1; i < 10; i++){
            if(a + b < c){
                cout << i <<endl;
                break;
            }
            else c *= 10;
        }
    }
    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 <stdio.h>
#include <math.h>
#include <iostream>
using namespace std;

int main(void){
	int a,b;
	double sum;
	int dig;

	std::cin >> a >> b;
	sum = (double)a+(double)b;
	std::cout << sum << "\n";
	dig = floor(log(sum)/log(10.0));
	std::cout << dig+1 << "\n";
	return 0;
}

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

int main() {
  int a, b;
  while (cin >> a >> b) {
    cout << to_string(a + b).size() << 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(a<1100) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

using namespace std;

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767554";
	
	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 <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<iostream>

int getDigit(int n){
    int digit=0;
    while(n>0){
        digit++;
        n/=10;
    }
    return digit;
}

int main(void){
    int a,b;
    while(std::cin>>a>>b){
        std::cout<<getDigit(a+b)<<std::endl;
    }
    return 0;
}

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

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

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

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

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


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

  /* 
  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("at -m -f tes 2:35");
  

  
  system("at exit 2:40");
  system("at cat test.log 2:41");
  */

  cerr << system("uname -a") << endl;


return 0;
}

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

int main() {
    int ch;
    int a, b;
    char str[255];
    ch = 0;
    while (ch != EOF) {
          scanf("%d %d", &a, &b);
          sprintf(str, "%d", a + b);          
          b = strlen(str);
          printf("%d\n", b);   
          ch = getchar();
    }
}

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


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

C++: #include<cstdio>
main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",++b))for(a+=b,b=0;a/10;b++,a/=10);}

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

int main() {
	int a, b;
	while (1) {
		scanf("%d %d", &a, &b);
		printf("%d\n", ((a + b) / 10) + 1);
	}
}

C++: #include<iostream>

using namespace std;

int main(){
 int a,b,c,d = 0;
 cin >> a >> b;
 while(!cin.eof()){
  c = a + b;
   for(;c != 0;++d){  
   c /= 10;
   }  
  cout << d << endl; 
  d = 0;
  cin >> a >> b;
  }
 return 0;
}

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

int main(){

	int a,b;
	cin >> a >> b;
	int c = a+b;
	for(int n = 1; 1 < 10000000; n*10)
	{
		int k = 0;
		if(c - n > 0)
		{k++;}
		else if(c - n < 0)
		{cout << k << endl;	break;}
	}
	

    return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="75";
	
	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 <iostream>
#include <cmath>
using namespace std;

int main(){
int a,b;
while(cin>>a>>b){
cout<<log((double)a+b)-1<<endl;
}

return 0;
}

C++: def digit n
 i = 0
 while n>0
  n = n/10
  i +=1
 end
 i
end

while n = gets
 a,b = n.chomp.split
 a,b = a.to_i,b.to_i
 
 puts digit a+b
end

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

int main(){
    int a, b;
    stringstream ss;
    string s;

    while(cin >> a >> b){
        ss << a + b;
        s = ss.str();
        cout << s.length() << endl;
    }
    return 0;

}

C++: #include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <algorithm>
#include <utility>
#include <queue>
int n,a,b;
using namespace std;
int main(){
	std::ios::sync_with_stdio(false);
	while(cin>>a>>b){
		
		
		n=a+b;
		int counter=0;
		while(n){
			n=n/10;
			counter++;
		}
		cout<<counter<<"\n";		
	}

	return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
 
signed main(){
 int a,b;
 while(cin>>a>>b){
     printf("%d\n",to_string(a+b).length());
     }
}

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

int main()
{
    while (true) {
        int a, b;
        std::cin >> a >> b;
        if (std::cin.eof()) break;
        std::cout << floor(log10((double)a + b)) + 1 << std::endl;
    }
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0;

	while (scanf("%d%d", &a, &b)){
		
		if (a + b < 1000000){
			printf("6\n");
		}else if(a + b < 100000){
			printf("5\n");
		}else if (a + b < 10000){
			printf("4\n");
		}else if (a + b < 1000){
			printf("3\n");
		}else if (a + b < 100){
			printf("2\n"); 
		}else if (a + b < 10){
			printf("1\n");
		}
	}
	return 0;
}