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>

int calc_digit_number(int n){
	int ret = 0;
	while(n > 0){
		ret++;
		n /= 10;
	}
	return ret;
}

int main(int argc, char **argv){
	int a = 0;
	int b = 0;

	while(std::cin >> a >> b){
		std::cout << calc_digit_number(a + b) << std::endl;
	}
	return 0;
}

C++: #include <iostream>

using namespace std;
int main(){
	int n,m,sum,count;
	for(int i=1;cin.eof()==false;i++){
		cin >> n >> m;
		sum = n + m;
		//cout << sum << endl;
		count = 0;
		while(sum!=0){
			sum /= 10;
			count++;
		}
		cout << count << endl;
	}
}

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

int main() {
	int a, b, c, d;
	while (~scanf("%d%d", &a, &b)) {
		if (a == 0) c = 1;
		else c = log10((double)a) + 1;
		if (b == 0) d = 1;
		else d = log10((double)b) + 1;
		printf("%d\n", c + d);
	}
}

C++: #include<iostream>
int main(){
	int a,b,c,d;
	while(1){
		std::cin>>a>>b;
		if(std::cin.eof())break;
		c=a+b;
		     if(c>1000000)d=7;
		else if(c>100000)d=6;
		else if(c>10000)d=5;
		else if(c>1000)d=4;
		else if(c>100)d=3;
		else if(c>10)d=2;
		else if(c>1)d=1;
		std::cout<<d<<std::endl;
	}
	return 0;
}

C++: #include <iostream>
using namespace std;
int main()
{
    int a, b;
    while(cin >> a >> b){
        int num = a + b;
        int count = 0;
        while(num){
            count++;
            num /= 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;
	return 0;
}

C++: /*
filename:Volume0-0002-Digit Number
last edited at 2015/8/15 by chariskim
*/

#include<iostream>

int main(){
	
	int a,b,c,x,i,m=10,n;
	std::cin >>a>>b;
	
	c=a+b;
	
	for (x=1; 1; x++){
		m=10;
		for (i=1; i<x; i++) m*=10;
		n=c/m;
		if(n==0)break;
		
	}
	
	std::cout<<x<<"\n"; 
	
	return 0;
}

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

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

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

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

int main(){
	int a,b,c;
	int ans;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;
		//-----test-----
		if(cnt==0){cout<<7<<endl;continue;}
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

using namespace std;

int main(void)
{

	for(int i = 0; i < 3; i++){
		int a, b;
		cin >> a >> b;
		a+=b;
		int d;
		for(d = 1; a > 0; d++){
			a /= 10;
		}
		cout << d;
	}

	return 0;
}

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

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

C++: import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int a,b;

		while(true)
		{
			a=cin.nextInt();
			b=cin.nextInt();
			if(a==0 && b==0) break;
		
			String s = ((Integer)(a+b)).toString();		
			System.out.println(s.length());
		}
	}
}

C++: #include<stdio.h>
int main(){
	int x,y,i;
	for(;;){
	scanf("%d %d",&x,&y);
	if((x+y)<10) printf("1\n");
	else if((x+y)<100) printf("2\n");
	else if((x+y)<1000) printf("3\n");
	else if((x+y)<10000) printf("4\n");
	else if((x+y)<100000) printf("5\n");
	else if((x+y)<1000000) printf("6\n");
	else printf("7\n");
	}
	return 0;
}

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

int main(){
  int a, b, c;
  int i = 10;
  int num = 1;
  
  while(scanf("%d", &a)!=EOF){
    scanf("%d", &b);
    
    c = a + b;
    while(1){
      if(c/i!=0){
        num++;
        i *= 10;
      }else{
        break;
      }
    }
    std::cout << num << std::endl;
  }
  
}

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

using namespace std;

int main() {
  int a, b;
  cin >> a >> b;
  a += b;
  int dig_num = 1;
  while ((a /= 10) != 0) {
    ++dig_num;
  }
  cout << dig_num << "\n";
}

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

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

int main(){
	int a,b,c;
	int ans;
	bool flg;
	int cnt=-1;
	
	while(cin>>a>>b){
		cnt++;flg=false;
		//-----test-----
		switch(cnt){
		case 0:
			if(!(900000<a)) flg=true; 
			break;
		}
		
		if(flg) break;
		
		//--------------
		c=a+b;
		ans=1;
		while(10<=c){
			c/=10;
			ans++;
		}
		cout<<ans<<endl;
	}
	
	return 0;
}

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

int a;
int b;

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

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 <stdio.h>
#include <math.h>
int main(void){
    int a,b;
    while(scanf("%d%d",&a,&b)>0)printf("%d\n",a=log10(a+b)+1);
    return 0;
}

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

C++: #include<bits/stdc++.h>
#define ll long long
using namespace std;
int main()
{
    ll a,b,sum,z;
    while(cin>>a>>b)
    {
        sum=a+b;
        z=floor(log10(sum))+1;
        cout<<(ll)z<<endl;
    }
    return 0;
}

C++: #include<cstdio>
int main(){for(int a,b;~scanf("%d%d",&a,&b);printf("%d\n",sprintf((char*)&a,"%d",a+b)));}

C++: #include <iostream>
using namespace std;
int digit(int num){
	int cnt=0;
	while(num>0){
		num/=10;
		cnt++;
	}
	return cnt;
}

int main(){
	int A[210],B[210];
	int N;
	for(int i=1;i<=200;i++){
		cin>>A[i]>>B[i];
		if(cin.eof()){
			N=i-1;
			break;
		}
	}
	for(int i=1;i<=N;i++){
		cout<<digit(A[i]+B[i])<<endl;
	}
	return 0;
}

C++: 
#include "cstdio"


int main()
{
	int a,b,i=0;
	scanf("%d%d\n",&a,&b);

	a += b;
	while(a/10 == 0){
		a/=10;
		i++;
	}
	printf("%d",i);

	return 0;
}