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<stdio.h>
int main()
{
int x,cou;
cou=0;
scanf("%d",&x);
while(1)
{
if(x/10==0){cou++;break;}
else {x=x/10; cou++;}
}
printf("%d\n",cou);
return 0;
}

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

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="72";
	
	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(void)
{
	int j[200],k[200];
	int i=0,l=0,kai[200]={0},x;
	do
	{
	   scanf("%d %d",&j[l],&k[l]);
	   if(j[l]==0)break;
	   l=l+1;
	
	}while(i !=1);
   for(i=0;i<l;i++)
   {
	   x=j[i]+k[i];

       while(x!=0)
		   {
			   x=x/10;
			   kai[i]=kai[i]+1;
	       }
   }
	for(i=0;i<l;i++)
	{
		printf("%d\n",kai[i]);
    }
  return 0;
}

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

int main() {
  int x, y;
  while( (x = cin.get()) != -1) {
    cin >> x;
    if(x == -1) {
      break;
    }
    cin >> y;
    cout << x + y << endl;
  }
}

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

int main(){
		int a, b, sum, result=0;
	scanf("%d %d",&a,&b);
	sum = a + b;
	while (sum > 0){
		sum /= 10;
		result++;
	}
	cout << result;
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(void){
	for(int a, b, count = 1; cin >> a >> b; cout << count << endl, count = 1){
		int sum = a + b;

		for(int i = 10; sum / i; i *= 10) count ++;
	}

	return 0;
}

C++: //
//  main.cpp
//  b
//
//  Created by h3037178 on 2017/07/31.
//  Copyright ?? 2017??´ ?????£?????????. All rights reserved.
//

#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    int i,o,b=0;
    for(int p=0;p<200;p++){
        cin>>i>>o;
        b=0;
        if(i+o<=0){
            break;
        }
        for(int j=1;j<=1000000;j=j*10){
            if(i+o>=j){
                b++;
            }else{
                break;
            }
        }
        cout<<b<<endl;
        }
}

C++: #include <stdio.h>

int main() {
    int a;
    int b;
    while (scanf("%d %d", &a, &b) != EOF) {
        int result = a + b;
        int digit = 0;
        while (result != 0) {
        digit++;
        result /= 10;
    }

    printf("%d\n", digit);
    }
}

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

int main(){
  int a, b, c;
  int keta;

  while(cin >> a){
    cin >> b
    c=a+b;
    keta=1;
    while((c/=10)>0) keta++;
    cout << keta << endl;
  }
  
  return 0;
}

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

int main() {
    int a, b;

    while (cin >> a >> b) {
        int sum = a + b;
        string s = to_string(sum);
        cout << s.length() << endl;
    }

    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

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

C++: #include<cstdio>

int main(){
	int nums[2];
	for(int i=0; i<2; ++i){
		scanf("%d", &nums[i]);
	}

	printf("%d\n", nums[0]+nums[1]);

	return 0;
}

C++: #include <iostream>
int main()
{
  int a, b;
  while (std::cin >> a >> b) {
    int c = a + b, r = 1;
    while (c >= 10) {
      c /= 10;
      r += 1;
    }
    std::cout << r << std::endl;
  }
  return 0;
}

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

int main(){
int a,b;

while(scanf(" %d %d",&a,&b){
int cnt=1;
for(int i=1;i<8;i++){
if(a+b-i*10<0)break;
cnt++;
}

cout << ont << endl;

return 0;
}

C++: #include <stdio.h>
#include <math.h>
#include <string.h>
int main(){
  int i,j,k,l;
  while(scanf("%d %d",&i,&j)!=EOF){
    k=i+j;
    for(l=1;l<7;l++){
      if(k<pow(10,i)){
        printf("%d\n",l);
        break;
      }
    }
  }
}

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

int main(){
	int a,b,c;
	int ans;
	
	for(int i=0;i<104;i++){
		cin>>a>>b;c=a+b;
		//-----test-----
		
		//--------------
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

int main() {
	int a,b;
	while(scanf("%d %d",&a,&b)) {
		int total=a+b,ans=1;
		while((total/1)>=10) {
			total/=10;
			++ans;
		}
		printf("%d\n",ans);
	}
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
  int a,b,i=0;
  while(cin>>a>>b,a+b!=0){
    if(i==199)
      break;
    int num=1;
    int c=a+b;
    while(c/10!=0){
      num++;
      c/=10;
    }
    cout<<num<<endl;
  }
  return 0;
}

C++: //泥臭いなあ
#include <iostream>
#include <cstdio>

int main()
{
        using namespace std;
        long int a,b;
        unsigned long int div;

        while(1){

        cin >> a;
        if(a == EOF)break;
        cin >> b;
        div = (a+b)/10;

        if(div == 0)cout <<1<<"\n";
        else if(1 <= div && div <= 9)cout <<2<<"\n";
        else if(10 <= div && div <= 99)cout <<3<<"\n";
        else if(100 <= div && div <= 999)cout <<4<<"\n";
        else if(1000 <= div && div <= 9999)cout <<5<<"\n";
        else if(10000 <= div && div <= 99999)cout <<6<<"\n";
        else if(100000 <= div && div <= 200000)cout <<7<<"\n";
        }

        return 0;
}

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

int main(){
	int a,b,c;
	for(int i=0;i<200;i++){
		double n=0;
		cin>>a;
		cin>>b;
		c=a+b;
		while(c>=1){
			c=c/10;
			n++;
		}
		cout<<n<<endl;
	}
	return 0;
}

C++: #include<stdio.h>

int main(){

	int i,j;
	int data[6];

	for(i=0;i<6;i++){
		scanf("%d",&data[i]);
	}
	data[0]=data[0]+data[1];
	data[1]=data[2]+data[3];
	data[2]=data[4]+data[5];

	for(i=0;i<3;i++){
		for(j=0;j<10;j++){
			if(data[i]<10){
				data[i+3]=j;
			}else{
				data[i]=(int)data[i]/10;
			}
		}


	getchar();

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

int main(){
    int a,b;
    cin >> a >> b;
    cout << to_string(a+b).size() << endl;
}

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


int main(){
	double a, b, c;
	int i;
	while (cin >> a >> b){
		c = a + b;
		i = 1;
		while (c >= 10){
			c = c / 10;
			i++;
		}
		cout << i << endl;
	}

	return 0;
}

C++: #include<iostream>
using namespace std;
int main()
{
	int a,b,z,ans;
	while(1){
		cin >> a >> b ;
		ans = a+b;
		z = 0;
		while(1){
			z++;
			if(ans / 10 == 0){
				break;
			}
			ans = ans / 10;
		}
		cout << z << endl;
	}
	return 0;
}

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

C++: #include<iostream>
#include<string>
int main(void){
    int a, b;
    while(std::cin >> a >> b){
        int s = a + b;
        std::cout << std::to_string(s).length() << std::endl;
    }
    return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b;
	while(scanf("%d %d",&a,&b)!=EOF){
		int cnt=0;
		int c=a+b;
		while(c){
			c/=10;
			cnt++;
		}
		printf("%d\n",cnt);
	}
	return 0;
}

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

int main() {
  int x, y, z, digit;

  while(cin >> x) {
    cin >> y;
    digit = 1;
    z = x + y;
    while(z >= 10) {
      digit++;
      z /= 10;}
    cout << digit << endl;
  }
}