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;
	int b;
	int n;

	cin>>a>>b;

	n = a+b;

	if(1<=n && n<10){

	cout << 1 << endl;
	}

	else if(10<=n && n<100){

		cout << 2 << endl;
	}
	else if(100<=n && n<1000){

		cout << 3 << endl;
	}
	else if(1000<=n && n<10000){

		cout << 4 << endl;
	}
	else if(10000<=n && n<100000){

		cout << 5 << endl;
	}
	else if(100000<=n && n<1000000){

		cout << 6 << endl;
	}
	else if(1000000<=n && n<10000000){

		cout << 7 << endl;
	}

	return 0;

}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555";
	
	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()
{
    long long a,b;
    while(scanf("%lld %lld",&a,&b)==2)
    {
        long long c=0,s=0;
        c=a+b;
        while(c!=0)
        {
          c/=10;
          s++;
        }
        printf("%lld\n",s);
    }
}

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

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

int main(void) {
    int a, b;
    
    while(scanf("%d %d", &a, &b) != EOF) {
        cout << digit(a + b) << endl;
    }
    
    return(0);
}

C++: #include <iostream>
using namesapce std;
int main(){
    int a,b,c;
    do{
    cin >> a >> b;
    c = a+b;
    if (c>1000000)
        cout << "7" << endl;
    else if (c>100000)
        cout << "6" << endl;
    else if (c>10000)
        cout << "5" << endl;
    else if (c>1000)
        cout << "4" << endl;
    else if (c>100)
        cout << "3" << endl;
    else if (c>10)
        cout << "2" << endl;
    else
        cout << "1" << endl;
} while (true);
}

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

using namespace std;

int main(){

	int a, b;
	cin >> a >> b;
	cout << a + b << endl;

	return 0;
}

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

using namespace std;

int main()
{
	int a, b;
	cin >> a >> b;

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

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

int main(){

const int num = 3;
int t;

long int a[num] = {0};
long int b[num] = {0};
long int c[num] = {0};
int cou = 0;

for(int i = 0; i < num; i++)
{
	cin >> a[i] >> b[i];
}

for(int i = 0;i < num;i++)
	{
		c[i] = a[i] + b[i];
		while(c[i] > 0)
		{
		c[i] /= 10;
		cou++;
		}
		if(cou == 0){cout << cou+1 << "\n";}
		else {cout << cou << "\n";}
		cou = 0;
	}
    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>
using namespace std;
int main() {
	int a, b,i;
	char c[10000];
	cin >> a >> b;
	a += b;
	for (i = 0; a / 10 != 0;i++){
		a /= 10;
	}
	cout << i+1<<endl;
	return 0;
}

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

void OutputSolution(int a, int b, int c, int d, int e, int f)
{
	int B = b;
	a *= e;
	b *= e;
	c *= e;
	d *= B;
	e *= B;
	f *= B;
	double x = (c-f) / (a-d);
	double y = (c-a*x) / b;
	cout << fixed << setprecision(3) << x << ' ' << y << endl;
}

int main()
{
	while(true){
		int a, b, c, d, e, f;
		cin >> a >> b >> c >> d >> e >> f;
		if(cin.eof()) break;
		OutputSolution(a, b, c, d, e, f);
	}
	return 0;
}

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

int main(void){
	int a,b,dig,i;
	double sum;
	for(i=0;i<3;i++){
		std::cin >> a >> b;
		sum = (double)a+(double)b;
		dig = floor(log(sum)/log(10.0));
		std::cout << dig+1 << "\n";
	}
	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<1000) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

C++: #include<iostream>
int main(){

for(int k=0;k<200;k++){
int i,j;
cin >> i >> j;
cout << i+j << endl;
}

return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main()
{
int a,b;
while(cin >> a >> b){
int x=1;
int ans=1;
while(x>=a+b){
x=x*10;
ans++;
}
printf("%d\n",ans);
}
return 0;
}

C++: #include<stdio.h>
#include<math.h>
int main(){
    int a,b;
    while(~scanf("%d%d",&a,&b)){
        printf("%d\n",(int)log10((double)(a+b))+1);
    }
}

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

int main(void)
{
    int i;
    int x, y;

    for (;;) {
        if (scanf("%d %d", &x, &y) == EOF) {
            break;
        }
        x += y;
        for (i = 1; ; i++) {
            x /= 10;
            if (x == 0) {
                break;
            }
        }
        printf("%d\n", i);
    }

    return 0;
}

C++: /* AOJ0002 Digit Number */
 
#include <stdio.h>
 
int sum_digits(int n, int base)
{
    int count = 0;
 
    while(n) {
        count++;
        n /= base;
    }
 
    return count;
}
 
int main(void)
{
    int a, b;
 
    while(~scanf("%d%d", &a, &b))
        printf("%d\n", sum_digits(a + b, 10));
 
    return 0;
}

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

int main()
{
int a=0,b=0,n[N],kaisu=0;

do{
 n[kaisu]=1;
 cin>>a>>b;
 if(a>=0 && b>=0 && a<=1000000 && b<=1000000)
 	{
	 a = a+b;
	 while(a>=10)
	 	{
		 a = a/10;
		 n[kaisu] += 1;
	 	}
 	}
 	cout<<n[kaisu]<<endl;
 	kaisu++;
 	
 	}while(kaisu<N && b!=999);


}

C++: #include<stdio.h>
#define MAX 1000000

int kcount(int,int);
int a[MAX],b[MAX],c[MAX];

int main(){
    int i,count=0,keta;
    
    i=1;
    while(scanf("%d %d",&a[i],&b[i]) != EOF){
        i++;
        count++;
    }
    
    for(i=1; i<=count; i++){
        c[i] = a[i] + b[i];
    }
    
    for(i=1; i<=count; i++){
    keta=kcount(c[i],0);
    if(keta == 0) c[i] = 1;
    else c[i] = keta;
    }
       
    for(i=1;  i<= count; i++){
    printf("%d\n",c[i]);
    }
    
    return 0;
}


int kcount(int c,int count){
    
    if(c==0) return count;
    else {
        c/=10;
        count++;    
        kcount(c,count);
    }
}

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

int main(){
  vector<int> sum;
  vector<string> truss;
  int a,b;
  while(cin>>a) {
    cin>>b;   
 sum.push_back(a+b);
  }
  for(int i=0;i<(int)sum.size();i++) { 
    truss.push_back(to_string(sum[i]));
  cout<<truss[i].size()<<endl;
  }
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int a,b,c,d=1;
	cin>>a>>b;
	c=a+b;
	while(true){
		if(c<=9){
			break;
		}
		c=c/10;
		d=d+1;
	}
	cout<<d;
}

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

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

int digit(int n){
    if (n == 0) return 1;
    int i;
    for (i = 0; n > 0;i++){
        n = n / 10;
    }
    return i;
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>
using namespace std;
#define REP0(i,n) for(int i=0;i<n;++i)
#define REP1(i,n) for(int i=1;i<=n;++i)
#define ALL(c) (c).begin(),(c).end()
int main(){
	int a,b;
	while(scanf("%d%d",&a,&b)!=EOF){
		printf("%d\n",(int)log10(a+b)+1);
	}
	return 0;
}