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<iostream>
using namespace std;
int main()
{
int a,b;
for(int i=0;i<200;i++)
{
cin>>a>>b;
if(a+b<10)
{
	cout<<1<<endl;
}
else if(a+b<100)
{
	cout<<2<<endl;
}
else if(a+b<1000)
{
	cout<<3<<endl;
}
else if(a+b<10000)
{
	cout<<4<<endl;
}
else if(a+b<100000)
{
	cout<<5<<endl;
}
else if(a+b<1000000) 
{
	cout<<6<<endl;
}
else if(a+b<10000000)
{
	cout<<7<<endl;
}
else
{
	break;
}
}
return 0;
}

C++: #include<stdio.h>
int main(void)
{
    int a,b,i,n;
	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 <iostream>
#include <string>

using namespace std;

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

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

int main() {
	int a,b,c,d,e,f;
	cin>>f;
	for(int i=0;i<=f;i++){
	cin>>a>>b;
	c=a+b;
	d=c;
	e=1;
	while(true){
		if(d<10){
			break;
		}
		d=d/10;
		e=e+1;
	}
	cout<<e<<endl;
	}
	return 0;
}

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

int main()
{
	int value,value_2,count = 0;
	
	while(cin >> value >> value_2)
	{
		count += 2;
		while(value / 10 != 0)
		{
			value /= 10;
			count++;
		}
		while(value_2 / 10 != 0)
		{
			value_2 /= 10;
			count++;
		}

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

C++: #include<iostream>
using namespace std;
unsigned int num(unsigned int x){
  int r;
  while(x!=0){
  x= x/10;
    r++;
  }
  return r;
}
int main(){
  unsigned int a,b;
  cin>>a>>b;
   a+=b;
   cout<<num(a)<<endl;
  return 0;
}

C++: #include<iostream>
using namespace std;
int main(void){
    int a,b;
    while(cin >> a >> b){
    a+=b;
    b=1;
        for(int i=1; i<=7; i++){
            b=b*10;
            if(a < b){
                cout << i << endl;
                break;
            }
        }
    }
}

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

int main() {

	while(1){
	unsigned int a, b;
	cin >> a >> b;

	int unsigned digit = 0, quotient = a + b;
	while(quotient != 0){
		quotient /= 10;
		digit++;
	}
	cout << digit << endl;
	}

	return 0;
}

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

using namespace std;

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

	return 0;
}

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

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

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

int main(void){
	int a,b,T,c,d,e,f,g,h,i,A=0;
	while(cin>>a>>b){
		T=a+b;
		
		c=T/1000000;
		if(c>=1) A=A+1;
		
		d=T/100000;
		if(d>=1)A=A+1;
		
		e=T/10000;
		if(e>=1)A=A+1;
		
		f=T/1000;
		if(f>=1)A=A+1;
		
		g=T/100;
		if(f>=1)A=A+1;
		
		h=T/10;
		if(h>=1)A=A+1;
		
		i=T/1;
		if(i>=1)A=A+1;
		
		cout<<A<<endl;
	}
	return 0;
}

C++: #include <iostream>
#include <cstdio>
 
using namespace std;
 
int sum(int n){
  int res = 1;
  while(n / 10 != 0){
    res++;
    n/=10;
  }
 
  return res;
}
 
int main()
{
  int a,b;
  while(~scanf("%d %d",&a,&b)){
    printf("%d\n",sum(a+b));
  }
 
  return 0;
}

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

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

int main(){
  int a,b;
  string s;
  while(cin >> a >> b){
	s = to_string(a+b);
	cout << s.size() << endl;
  }
  return 0;
}

C++: #include<iostream>

using namespace std;

int main(){
	
	int i;

	int a,b,sum,figure;
	do{
		cin >> a[i] >> b[i];
	}while((a[i]<0||a[i]>100000)&&(b[i]<0||b[i]>100000));
	
	sum = a + b;

	
	figure = 1;
	while(sum[i]/10!=0){
		sum[i] = sum[i]/10;
		figure++;
	}
	cout << figure << "\n";
	
	return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
int main(){
	int a,b,i,keta,waru;
	while(cin>>a>>b){
		keta=0;
		waru=1;
		while(1){
			if((a+b)/waru*10!=0){
				keta++;
				waru=waru*10;
				}
			else break;
			}
		cout<<keta<<endl;
		}
	return 0;
}

C++: #include<iostream>
#include<cstdio>
using namespace std;
int main(){
int a,b,i,c=0;
while(scanf("%d%d",&a,&b)!=EOF){
a=a+b;
for(i=1;i<10000000000;i*=10){
	if(a/i==0)break;
	c++;
}

cout<<c<<endl;
}
return 0;
}

C++: #include<stdio.h>

int main()
{
	int a, b, sum = 0, counts = 0;
	while(scanf("%d %d", &a, &b) != EOF)
	{
		counts = 0;
		sum = a + b;
		while(sum != 0)
		{
			sum /= 10;
			counts++;
		}
		printf("%d\n", counts);
	}
	return 0;
}

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

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;
}