Go: // 九九を出すだけ
package main
import (
	"fmt"
	"os"
	"bufio"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)
var out = bufio.NewWriter(os.Stdout)

func main(){
	sc.Split(bufio.ScanWords)
	defer out.Flush()
	for sc.Scan(){
	    s := nextIntIs()
	    sc.Scan()
	    t := nextIntIs()
        a := len(strconv.Itoa(s+t))
	    fmt.Fprintln(out, a)
	}
}

func next() string{
	sc.Scan()
	return sc.Text()
}

func nextInt() int{
	a, _ := strconv.Atoi(next())
	return a
}

func nextIntIs() int{
	a, _ := strconv.Atoi(sc.Text())
	return a
}

C++: #include<iostream>
using namespace std;
   
int main(){
   int a[200],b[200],c[200],digit[200];
   int i,imax,j;
   i = 0;
   j = 1;
   for(i=0;i<200;i++)digit[i] = 1;
   while(j){
     cin >> a[i] >> b[i];
     c[i] = a[i] + b[i];
     i++;
     if(a[i]==0||b[i]==0)
       break;
   }
   
   imax = i;
   
   for(i=0;i<imax+1;i++){
     while(c[i]>=10){
       c[i] /= 10;
       digit[i]++;
     }
   }
   
   for(i=0;i<imax+1;i++)cout << digit[i] << endl;
   
   return 0;
}

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

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

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

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

using namespace std;

int main(void){
	int	a,b;

	while(true){
		cin >> a;
		cin >> b;

		cout << (int)log10(a+b)+1 << endl;
	}

	return 0;
}

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

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

C++: #include<stdio.h>
int main(void){
	int a,b,c;
	char t[100];
	while(scanf("%d%d", &a, &b)!=EOF){
		sprintf(t,"%d%n\n",a+b,&c);
		printf("%d\n",c);
	}
	return 0;
}

C++: #include<stdio.h>
 
int main(){
 int a,b,c;
 while(~scanf("%d%d",&a,&b)){
 c=0;
 a+=b;
 while(a){
 a/=10;
 c++;
}
printf("%d\n",c);
}
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(a<100000) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include<stdio.h>
int main(void){
	int a,b,c,d,e;
	e=0;
	scanf("%d%d",&a,&b);
	c=a+b;
	for(d=1;d<=c;d*=10){
		e++;
	}
	printf("%d",e);
	return 0;
}

C++: #include <iostream>

u_int getDigit(u_int n){
	u_int digit = 1;
	
	while(n / 10 != 0){
		n /= 10;
		++digit;
	}
	
	return digit;
}
  
int main(){
    u_int a, b;
    
    while(std::cin >> a >> b){
        std::cout << getDigit(a + b) << std::endl;
    }
	
    return 0;
}

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

using namespace std;

int main( int argc, char* argv[] )
{
        int sum, keta;
        char dummy[10];

        if( argc != 3 )
        {
                cout << "usage: ./a.out (int) (int)\n" << endl;
        }

        sum = atoi( argv[1] ) + atoi( argv[2] );
        keta = sprintf( dummy, "%d", sum );
        printf( "%d\n", keta );
}

C++: #define _USE_MATH_DEFINES
#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <algorithm>
#include <sstream>
#include <map>
#include <set>
#include <cstdio>
using namespace std;

#define REP(i,a,b) for(i=a;i<b;i++)
#define rep(i,n) REP(i,0,n)

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
/* ここからが本編 */
/* */
/* 入力開始！ */
/* 入力終了！ */
int main(void)
{
   int n;
   int a,b;
   while(cin >> a >> b) {
      int cnt = 0;
      a += b;
      while(1) {
         if(a == 0) break;
         a /= 10;
         cnt++;
      }
      cout << cnt << endl;
   }

   return 0;
}

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

C++: #include <iostream>
using namespace std;
int main (){
  int a;
  int b;
  int k;
  int h;
  for(;;){
  cin >>a>>b;
  k=a+b;
  h=0;
  if (k<10&&h==0){
      cout << "1"<<endl;
      h=1;
  }
  if (k<100&&h==0){
    cout << "2"<<endl;
    h=1;
      }
  if (k<1000&&h==0){
    cout << "3"<<endl;
    h=1;
      }
  if (k<10000&&h==0){
    cout << "4"<<endl;
    h=1;
      }
  if (k<100000&&h==0){
    cout << "5"<<endl;
    h=1;
      }
  if (k<1000000&&h==0){
    cout << "6"<<endl;
    h=1;
      }
  if (k<10000000&&h==0){
    cout << "7"<<endl;
    h=1;
      }
  if (k<100000000&&h==0){
    cout << "8"<<endl;
    h=1;
      }
  if (k<1000000000&&h==0){
    cout << "9"<<endl;
    h=1;
      }
  if (k<10000000000&&h==0){
    cout << "10"<<endl;
    h=1;
      }
  }
}

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

using namespace std;

void get_digit(int a,int b){
  int sum = a+b;
  int digit=0;

  while(sum != 0){
    sum /= 10;
    digit++;
  }

  cout <<digit << "\n";
}

int main(){
  int i=0;
  int input=-1;
  int a=-1,b=-1;

  while(cin >> input ){
    i++;
    if(i == 1){
      a = input;
    }else if(i == 2){
      b = input;
      i=0;
    }
    if(i == 0){
      get_digit(a,b);
      a = -1;
      b= -1;
    }
  }

  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a,b;
  int k=0;
  int s=0;
  int i;
  int ke[999]={0};
  while(cin>>a>>b){
  s=a+b;
  while(s>=10){
    s=s/10;
    ke[k]++;
  }
  k++;
}
  for(i=0;i<=k;i++){
  cout<<ke[i]+1<<endl;
}
  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int x,y;
    int result;
    cin >> x;
    cin >> y;
    
    result = x + y;
    

  int count = 0;
  while(result)
{
   result /= 10;
   ++count;

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <sstream>
using namespace std;
int main()
{

	int len[200];
	int max = 0;
	for(int num = 0 ;num < 200 ; num++)
	{
		string str;
		string item;
		vector<string> list;
		getline(cin, str);
		if (str == "")
		{
			break;
		}

		stringstream ss(str);
		while (getline(ss, item, ' ') && !item.empty()) {
			list.push_back(item);
		}
		int sum = stoi(list[0].c_str()) + stoi(list[1].c_str());
		int count = 0;
		for (int i = 10; i <= 10000000; i = i * 10)
		{
			count++;
			if(sum < i)
			{
				len[num] = count;
				max++;
				break;
			}


		}
	}
	for (int num = 0; num < max; num++)
	{
		cout << len[num] << endl;

	}
	return 0;
}

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

int main(void)
{
  int a, b;

  while (cin >> a) {
    cin >> b;
    cout << a + b << endl;
  }

  return 0;
}

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

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

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

int get_digit(int num);

int main() {
	int first;
	int second;
	int data_cnt = 0;
	std::vector<int> inputs;

	while ((cin >> first >> second) || (data_cnt < 200)) {
		data_cnt++;
		inputs.push_back(first + second);
	}

	for (int i = 0; i < data_cnt; i++) {
		cout << get_digit(inputs[i]) << endl;
	}

	return 0;
}

int get_digit(int num) {
	unsigned digit = 0;
	while (num != 0) {
		num /= 10;
		digit++;
	}
	return digit;
}

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

int main(void)
{
  int val1, val2;

  std::cin >> val1 >> val2;

  int sum = val1 + val2;

  int numDigit = 0;
  while (sum > 0) {
    sum /= 10;
    numDigit++;
  }

  std::cout << numDigit << std::endl;

  return 0;
}