Go: package main

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

var (
	sc = bufio.NewScanner(os.Stdin)
)

func main() {
	for sc.Scan() {
		chunks := strings.Split(sc.Text(), " ")
		if len(chunks) != 2 {
			break
		}
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(a + b)
	}
}

C++: #include<stdio.h>
int main(){
  int a,b,c;
  while(scanf("%d%d",&a,&b)!=EOF){
  	c = a + b;
  	if(c<10) printf("1\n");
  	else if(c<10^2) printf("2\n");
  	else if(c<10^3) printf("3\n");
  	else if(c<10^4) printf("4\n");
  	else if(c<10^5) printf("5\n");
  	else if(c<10^6) printf("6\n");
  	else if(c<10^7) printf("7\n");
  	else break;
  }
  return 0;
}

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

using namespace std;

int main(int argc, char *argv[])
{
    int a,b;
    while(scanf("%d%d",&a,&b) != EOF)
    {
          int x = a+b;
          int count = 0;
          while(x != 0)
          {
                  x = x /10;
                  count ++;
          }
          printf("%d\n",count);
    }

    
    system("PAUSE");
    return EXIT_SUCCESS;
}

C++: #include<iostream>
using namespace std;
int main(void){
	int a,b;
	cin>>a>>b;
	for(a+=b,b=0;a>0;b++,a/=10);
	cout<<b<<endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
#define mp make_pair
#define fi first
#define se second
#define ll long long
#define pb push_back

# define inOut(a,b) freopen(a,"r",stdin);freopen(b,"w",stdout);
# define RESET(a) memset(a,0,sizeof(a))
# define MEMO(a) memset(a,-1,sizeof(a))
# define DEBUG puts("Debug-Has-Come-Until-Here")


typedef pair<int,int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;

int main(){
	cin.tie(NULL);

	int a,b,hitung;
	while(scanf("%d %d", &a,&b) != EOF){
		hitung = 0;
		a = a+b;
		if (a == 0)hitung = 1;
		while(a >0){
			hitung ++;
			a/=10;
		}
		printf("%d\n", hitung);
	}
	return 0;
}

C++: //-------------
//include
//-------------
#include <map>
#include <list>
#include <cmath>
#include <vector>
#include <string>
#include <cctype>
#include <cstdlib>
#include <iostream>
#include <algorithm>
using namespace std;
//-------------
//typedef
//-------------
typedef long long LL;
typedef  vector<int> VI;
typedef  pair<int, int> PII;
typedef  vector<int, int> VII;
typedef  map<string, int> MSI;
//-------------
//utillty
//-------------
#define ALL(a)  (a).begin(),(a).end()
#define MK make_pair
#define PB push_back
#define SZ(a) int((a).size())
#define EACH(i,c) for(typeof((c).begin()) i=(c).begin(); i!=(c).end(); ++i)
#define EXIST(s,e) ((s).find(e)!=(s).end())
#define SORT(c) sort((c).begin(),(c).end())
#define COUT(a) cout<<a<<endl
//-------------
//repetition
//-------------
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define REP(i,n)  FOR(i,0,n)
//-------------
//debug
//-------------
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define dumpl(c) REP(i,SZ(c))cerr<<#c<<i<<"="<<(c[i])<<endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;

const int MOD = 1000000007;
int main()
{
	int a, b;
	while (cin >> a >> b)
	{
		COUT(to_string(a + b).length());
	}
#ifdef _DEBUG
	while(1);
#endif // _DEBUG

	return 0;
}

C++: #include <iostream>
int main(){
	int a,b,c;
	std::cin>>a>>b>>c;
	if(a*a==b*b+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(b*b==a*a+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(c*c==a*a+b*b){
		std::cout<<"YES"<<std::endl;
		}
	else std::cout<<"NO"<<std::endl;

	
		
	 return 0;
	}

C++: #include<iostream>
using namespace std;
 
int main(){
   int a[200],b[200],c[200],digit[200];
   int i,imax;
   i = 0;
   for(i=0;i<200;i++)digit[i] = 1;
   while(){
     cin >> a[i] >> b[i];
     c[i] = a[i] + b[i];
     i++;
     if(a[i]==NULL||b[i]==NULL)
       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 <stdio.h>
int main(){
	int a[200], b[200];
	int i, j, r;
	while(a[i]>=0 && a[i]<=1000000 && b[j]>=0 && b[j]<=1000000){
		for(i=0; i<199; ++i){
			for(j=0; j<199 ; ++j)
				scanf("%d%d", &a[i], &b[j]);
		}
	}
	for(i=0; i<199; ++i){
		for(j=0; j<199 ; ++j){
			r = (a[i]+b[j])/10;
			if(r==0) printf("1");
			else if(r>0 && r<10) printf("2");
			else if(r>=10 && r<100) printf("3");
			else if(r>=100 && r<1000) printf("4");
			else if(r>=1000 && r<10000) printf("5");
			else if(r>=10000 && r<100000) printf("6");
			else if(r>=100000 && r<1000000) printf("7");
			}	
	}	
	return 0;
}

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

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

C++: #include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main ()
{
    long long int n,a,b,i,r;
    while (scanf ("%lld %lld",&a,&b)!=EOF)
    {
        i=a+b;
        r=log10(i)+1;
        printf ("%lld\n",r);
    }
    return 0;
}

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

C++: #include<iostream>
#include<string>
#include<queue>
using namespace std;
int main(){
	string str,str1;
	int num,num1,sum,count=0,a,b;
	while(cin>>num>>num1){
		sum=num+num1;
		a=sum;
		b=sum;
		for(;;){
			a/=10;
			count++;
			if(a==0 ){
				break;
			}
		}
		cout<<count<<endl;
		a=0;count=0;sum=0;
	}
}

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

int main()
{
    int a, b;
    while (1) {

        cin >> a >> b;
        if (a == 0 && b == 0)
            break;
        int c = a + b;
        int ans = 0;
        while (c != 0)
        {
            c /= 10;
            ans++;
        }
        cout << ans << endl;
    }
    return 0;
}

C++: #include <iostream>
int main(){
	int a,b,c;
	std::cin>>a>>b>>c;
	if(a*a==b*b+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(b*b==a*a+c*c){
		std::cout<<"YES"<<std::endl;
		}
	else if(c*c==a*a+b*b){
		std::cout<<"YES"<<std::endl;
		}
	else std::cout<<"NO"<<std::endl;

	
		
	 return 0;
	}

C++: #include<stdio.h>
int main(void)
{
    int a,b,i=1;
	while(1){
		scanf("%d %d",&a,&b);
		a=a+b;
		for(i=1;i<8;i++){
			if(a<10) break;
			a=a/10;
		}
		printf("%d\n",i);
	}
	return 0;
}

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



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

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

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

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

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

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

int main(){
  vector<int> sum;
  vector<string> truss;
  int a,b;
  while(cin>>a>>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>
#include<math.h>
using namespace std;

int main() {
	float a,b,sum;
	int t=200;
	while(t--)
	{
		int cont=0;
		do
		{
		cin>>a;cin>>b;
		}while(a<0||a>1000000||b<0||b>1000000);
		sum=a+b;
		do
		{
			sum=sum/10;
			cont++;
		}while(floor(sqrt(sum))!=0);
		cout<<cont<<endl;
	}
	return 0;
}

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

int main() {
	int a,b;
	while(cin >> a >> b){
		char s[100];
		sprintf(s,"%d",a+b);
		cout << strlen(s) << endl;
	}
}