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,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(a<=1000 || 100000<=a) break;
		
		//--------------
		c=a+b;
		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){
		
		if( a<0||b<0||1000000<a||1000000<b)
			break;
		cout<<(int(log10(a+b))+1)<<endl;
	}
	return 0;
}

C++: #include<bits/stdc++.h>
#define ll long long 
#define ull unsigned long long 
#define ld long double
#define ui unsigned int 
using namespace std;
int main()
{
	int a, b;
	while (cin >> a >> b) {
		int s = a + b;
		int c = 0;
		while (s > 0) {
			s = s / 10;
			c++;
		}
		cout << c<<endl;
	}
}

C++: #include <cstdio>
using namespace std;
int a,b,s;
int p,cnt,ans;
int scan(){
  scanf("%d %d",&a,&b);
  if(a==EOF) return 0;
  return s=a+b;
}
int count(int s){
  if(s/10==0) return cnt;
  else {
    cnt++;
    count(s/10);
  }
}
int main(){
  while(1){
    cnt=1;
    ans=count(scan());
    printf("%d\n",ans);
  }
}

C++: #include<iostream>
using namespace std;
int main()
{
	int a, b, sum;
	cin >> a >> b;
	sum = a + b;
	if (sum < 10)cout << "1" << endl;
	if (sum < 100 && sum >= 10)cout << "2" << endl;
	if (sum < 1000 && sum >= 100)cout << "3" << endl;
	if (sum < 10000 && sum >= 1000)cout << "4" << endl;
	if (sum < 100000 && sum >= 10000)cout << "5" << endl;
	if (sum < 1000000 && sum >= 100000)cout << "6" << endl;
	if (sum < 10000000 && sum >= 1000000)cout << "7" << endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
typedef long long LL;
int main(){
	LL a,b;
	while(cin>>a,cin>>b){
	   LL c=a+b;
	   LL count=0;
	   while(c!=0){
	      c/=10;
	      count++;
	   }
           cout<<count<<endl;
        }
	return(0);
}

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

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

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

C++: #include <stdio.h>

int main(void)
{
	int a[200],b[200],sum[200],keta[200],cnt=0,set=3;

	//scanf("%d",&set);
	for(int i=0;i<set;i++) //input
		scanf("%d%d",&a[i],&b[i]);

	for(int i=0;i<set;i++){
		sum[i]=a[i]+b[i];
		while(sum[i]!=0){
			sum[i]=sum[i]/10;
			cnt++;
		}
		printf("%d\n",cnt);
		cnt=0;
	}

	return 0;
}

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


using namespace std;

int main(){
  while(!cin.eof()){
	int a, b; cin >> a >> b;
	cout << (a+b == 0? 0: 1+(int)log10(a+b)) << endl;
  }
  return 0;
}

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

int main()
{
	int d, a, b, s;

	d = 0;
	
	
	while(d < 200){
		
		s = 0;
		cin >> a >> b;

		while(a>0){
			a /= 10;
			s++;
		}
		while(b>0){
			b /= 10;
			s++;
		}
		cout << s << endl;
		d++;

	}



	return 0;
}

C++: #include <stdio.h>

int main(){

	int a=0,b=0,x=0;

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

C++: #include<iostream>

using namespace std;

int main()
{
	size_t ix = 0;
	int a[100],b[100];

	while(cin >> a[ix]){
		if(a[ix]<0 || a[ix]>1000000)
			break;
		if(!(cin >> b[ix]))
			break;
		if(b[ix]>0 || b[ix]>1000000)
			break;
		++ix;
	}

	for(size_t count = 0;count != ix;++count){
		int dight,temp = a[count]+b[count];
		for(a[count]+b[count]>1?1:0,dight = 0;;)
			if(temp/=10)
				++dight;
			else
				break;
		cout <<dight<<endl;
	}

	return 0;
}

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

}

C++: #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <string.h>
#include <algorithm>
#include <cmath>
#include <limits>
#include <sstream>

using namespace std;

int main (void)
{
	for (int i = 0; i < 200; i++)
	{
		long long n,m;
		cin >> n >> m;

		long long u = 0;
		u = n + m;

		ostringstream str;
		str << u;
		string p = str.str();

		int q = 0;
		q = p.size();

		cout << q << endl;
	}
}

C++: #include <bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e9 + 7, MOD = 1e9 + 7;
const long long LINF = 1e18;
const int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};

int DigitCount(int x) {
	int count = 0;
	while (x) {
		x /= 10;
		count++;
	}
	return count;
}

signed main() {
	int a, b;
	while (cin >> a >> b) {
		cout << DigitCount(a + b) << endl;
	}
	return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int a[100], b[100], c, i;
	for(i=0;(a[i]!='\n')||(b[i]!='\n');i++)
	{
		scanf("%d %d", &a[i], &b[i]);
		c = a[i]+b[i];
		printf("%d\n", c/10);
	}
	return 0;
}

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

int main() {
  int i;
  int a,b;
  while(scanf("%d %d",&a, &b) != EOF) {
    int c = a+b;
    printf("%d\n",c);
    for(i = 1; i < 9; i++) {
      if(c/(int)pow(10,i) == 0) {
	printf("%d\n",i);
	break;
      }
    }
  }

  return 0;
}

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

int size = 200;

int main(void) {
    int a[size];
    int b[size];
    int sum;
    int i = 0;
    
    while(cin >> a[i] >> b[i]) {
        sum = a[i] + b[i];
        
        int check = 1;
        for(int i = 0; i < 7; ++i) {
            if(sum < check - 1) {
                cout << i << endl;
                break;
            }
            check *= 10;
        }
        i++;
        if(i == 200) {
            break;
        }
    }
}

C++: include<iostream>
#include<string>
using namespace std;
int main()
{
  int a,b;
  char ans[16];
  while(scanf("%d %d",&a,&b) != EOF){
    if(a == 0 && b == 0)break;
    sprintf(ans,"%d",a+b);
    int len = strlen(ans);
    cout << len << endl;
  }
}

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

int main(){
	int m,n;
	while(cin >> m >>n)
	{
		int i = m +n;
		
		int count = 0;
		while(i){
				count++;
			i = i/10;
		
		}
		cout << count << endl;
	}
	
    return 0;
	
}

C++: #include <stdio.h>
#define N 16
int main(){
	char temp[N];
	int a[200],b[200];
	int i,j,k,n;
	for(i=0;i<200;i++){
		fgets(temp,N,stdin);
		if(temp[1]!='\0'){
			sscanf(temp,"%d %d",&a[i],&b[i]);
		}else{
			j=i;
			break;
		}
	}
	for(i=0;i<j;i++){
		k=1,n=0;
		while(a[i]+b[i]>=k){
			k*=10;
			n+=1;
		}
		printf("%d\n",n);
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    long long x,y,z;
    int count;
    while(cin >> x >> y){
        z = x + y;
        count=1;
        while(z/=10){
            count++;
        }
        cout<<count<<"\n";
    }
}