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(), " ")
		a, _ := strconv.Atoi(chunks[0])
		b, _ := strconv.Atoi(chunks[1])
		fmt.Println(len(fmt.Sprint(a + b)))
	}
}

C++: #include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
#include<string>
#include<algorithm>
#include<iostream>
#include<stack>
#include<queue>
#include<vector>
#include<map>
#include<set>
using namespace std;
int reshan(int sum)
{
    int i=0;
    while(sum!=0)
    {
        i++;
        sum=sum/10;
    }
    return i;5
}
int main ()
{
    int in1,in2;
    int i;
    while (scanf ("%d %d",&in1,&in2)!=EOF)
    {
        int sum=in1+in2;
        int z=reshan(sum);
        printf ("%d\n",z);
    }
    return 0;
}

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

int main(){
	int a, b;
	list<int> digit;
	
	while(!(cin>>a>>b).eof()){
		if((a+b)>0){
			int c=a+b;
			stringstream ss;
			ss << c;
			digit.push_back(ss.str().size());
		}
		
	}
	list<int>::iterator it = digit.begin();
	while(it != digit.end()){
		cout << *it << endl;
		it++;		
	}
	
 	return 0;
}

C++: #include<iostream>
#include<algorithm>
using namespace std;
int main(){
	int a,b;
	while(cin>>a>>b){
	int t=8750;
	for(int i=t;i;i--){
		for(int j=i;j;j--){
			if(i+j==2)a+=b;
		}
	}
	int cnt=0;
	while(a)a/=10,cnt++;
	cout<<cnt<<endl;
	}
	return 0;
}

C++: #include<stdio.h>
int main(void)
{
	int a,b,s;
	scanf("%d %d",&a,&b);
	s=a+b;
	if(s<10){
		printf("1\n");
	}
	else if(s>9&&s<100){
		printf("2\n");
	}
	else if(s>99&&s<1000){
		printf("3\n");
	}
	else if(s>999&&s<10000){
		printf("4\n");
	}
	else if(s>9999&&s<100000){
		printf("5\n");
	}
	else if(s>999999&&s<1000000){
		printf("6\n");
	}
	else{
		printf("7\n");
	}
	return 0;
}

C++: #include <iostream>
#define  N 3

int main()
{
	int a[N]={-1}, b[N]={-1}, num[N],answer[N] = {-1};

	for(int i=0; i<N; ++i)
	{
		std::cin >> a[i] >> b[i];

		num[i] = a[i] + b[i];

		if(num[i] < 10)
		{
			answer[i] = 1;
		}

		else if(num[i] < 100)
		{
			answer[i] = 2;
		}

		else if(num[i] < 1000)
		{
			answer[i] = 3;
		}

		else if(num[i] < 10000)
		{
			answer[i] = 4;
		}

		else if(num[i] < 100000)
		{
			answer[i] = 5;
		}

		else if(num[i] < 1000000)
		{
			answer[i] = 6;
		}

		else
		{
			answer[i] = 7;
		}
	
	}

	for(int j=0; j<N; ++j)
	{
		std::cout << answer[j] << '\n';
	}
	
}

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,f;
    for(int p=0;p<200;p++){
        cin>>i>>o;
        b=0;
        f=i+o;
        if(f<=0||f>2000000  ){
            break;
        }
        for(int j=1;j<=1000000;j=j*10){
            if(i+o>=j){
                b++;
            }else{
                break;
            }
        }
        cout<<b<<endl;
        }
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555555555555555555555555546";
	
	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>
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;
        }
        else if(ans <= 9999){
            ans = 5;
        }
        else if(ans <= 99999){
            ans = 6;
        }
        else if(ans <= 999999){
            ans = 7;
        }
        std::cout << ans << std::endl;
    }
    return 0;
}

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

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

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

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

int check_digit(int num) {
  int digit = 0;
  while (true) {
    num /= 10;
    digit++;
    if (num <= 0) {
      break;
    }
  }
  return digit;
}

int digit_count(int a, int b) {
  int digit;
  digit = check_digit(a + b);
  return digit;
}

int main(int argc, char const *argv[]) {
  int a, b;
  list<int> ls;
  while (!std::cin.eof()) {
    std::cin >> a;
    std::cin >> b;
    ls.push_back(digit_count(a, b));
  }

  for (int i : ls) {
    std::cout << i << '\n';
  }
}

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

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

C++: #include <iostream>

int main()
{
	int a;
	int b;
	while (std::cin >> a >> b) {
	int c = a + b;
	if (c < 10)
	{
		std::cout << 1 << std::endl;
	} else if (10 <= c && c < 100)
	{
		std::cout << 2 << std::endl;
	} else if (100 <= c && c < 1000)
	{
		std::cout << 3 << std::endl;
	} else if (1000 <= c && c < 10000)
	{
		std::cout << 4 << std::endl;
	} else if (10000 <= c && c < 100000)
	{
		std::cout << 5 << std::endl;
	} else if (100000 <= c && c < 1000000)
	{
		std::cout << 6 << std::endl;
	} else if (1000000 <= c)
	{
		std::cout << 7 << std::endl;
		} 
	}
	return 0;
}

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

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

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

int main()
{
 int a, b;

 while(cin >> a >> b){
  int mas = a + b;
  int n = 0
  while(mas /= 10 != 0) n++;
  cout << n+1 << '\n';
 }

 return 0;
}

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

int main(){
	char a;
	char b;
	int c;

	while (cin >> a >> b){
		c = a + b;
	}

	cout << c;

	return 0;
}

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

using namespace std;

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

C++: #include <stdio.h>
int main(){
	int a,b,k,n;
	char temp[2];
	while(scanf("%d %d",&a,&b)!=0){
		gets(temp);
		k=1,n=0;
		while(a+b>=k){
			k*=10;
			n+=1;
		}
		printf("%d\n",n);
	}

	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="77675555555555555555555555555555555555555455555555555555555555555555555555555555555555555555555555555555";
	
	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 <cstdio>

using namespace std;

int main()
{
  int a, b;
  
  while (scanf("%d%d", &a, &b), a != EOF){
    int cnt = 1;
    for (int i = a + b; i >= 10; cnt++) i /= 10;
    
    printf("%d\n", cnt);
  }

  return (0);
}