Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
	"strings"
	"unicode/utf8"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	var strs []string
	var a, b, sum int64
	var digits int
	for scanner.Scan() {
		strs = strings.Split(scanner.Text(), " ")
		a, _ = strconv.ParseInt(strs[0], 10, 64)
		b, _ = strconv.ParseInt(strs[1], 10, 64)

		sum = a + b
		// goでlen(string)はbyte数が返る
		digits = utf8.RuneCountInString(strconv.FormatInt(sum, 10))

		fmt.Printf("%d\n", digits)
	}
}

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

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

using namespace std;

int main(){
    int a, b;
    cin >> a >> b;

    cout << floor(log10(a + b)) + 1 << endl;

    return 0;
}

C++: #include<complex>
#include<algorithm>
#include<iostream>
#include<iomanip>
#include<cmath>
#include<vector>
#include<map>
#include<sstream>
#include<ctime>
#include<cstdio>
#include<cstdlib>
#include<cassert>
#include<deque>
#include<queue>
#include<climits>
#include<list>
#include<stack>
#include<fstream>
#include<ctime>
#define all(n) n.begin(),n.end()
#define REP(i,s,n) for(int i=s;i<n;i++)
#define rep(i,n) REP(i,0,n)
#define insert(a,b,c,d) PP(P(a,b),P(c,d))
#define F first
#define S second
#define pb push_back
#define INF (1<<27)
#define EPS 1e-10
#define equals(a,b) (fabs((a)-(b)) < EPS)

using namespace std;
typedef pair<int,int> P;
typedef pair<P,P> PP;
typedef unsigned long long ull;
typedef long long ll;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};


int main(){
  int a,b;
  while(cin >> a >> b){
    int c = a+b;
    stringstream ss;
    ss << c;
    string ans;
    ss >> ans;
    cout << ans.length() << endl;
  }

  ofstream ofs("tes");
  ofs << "script -k test.log" << endl;
  system("chmod 755 tes");
  system("./tes");

return 0;
}

C++: #include<iostream>                                                                 
#include<stdio.h>                                                                  
                                                                                   
                                                                                   
int main(void){                                                                    
  int x,y,z,keta=0;                                                                
  scanf("%d %d",&x,&y);                                                            
  z =x+y;                                                                          
  while(z>0){                                                                      
    z = z/10;                                                                      
    keta++;                                                                        
  }                                                                                
  std::cout << keta << std::endl;                                                  
  return 0;                                                                        
}   #include<iostream>                                                             
#include<stdio.h>                                                                  
                                                                                   
                                                                                   
int main(void){                                                                    
  int x,y,z,keta=0;                                                                
  scanf("%d %d",&x,&y);                                                            
  z =x+y;                                                                          
  while(z>0){                                                                      
    z = z/10;                                                                      
    keta++;                                                                        
  }                                                                                
  std::cout << keta << std::endl;                                                  
  return 0;                                                                        
}

C++: import java.util.*;

public class Main {
    public static void main(String[] args) {
	Scanner s = new Scanner(System.in);
	while(s.hasNext()) {
	    int sum = s.nextInt() + s.nextInt();
	    System.out.println(String.valueOf(sum).length());
	}
    }
}

C++: #include <iostream>
#include <math.h>
#include <algorithm>
using namespace std;

int main()
{
	int a,b,c;
	cin >>a >>b;
	c = a+b;
	int ret = 1;
	for(i=1;;i++){
		if( (c/pow(10,i) >=1 ){
			ret++;
		}else{
			break;
		}
	}
	cout <<ret <<endl;
		
	return 0;
}

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="776";
	
	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>
#include<cmath>
using namespace std;
 
int main(){
    int a,b;
    while(cin>>a>>b){
        a=log10(a+b)+1;
        cout<<a<<endl;
    }
    return 0;
}

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

int main()
{
	int a,b,c;
	while(cin >> a >> b)
	{
		
	stringstream s;

	cin >> a >> b;
	c = a+b;

	s << c;
	cout << s.str().size() << endl;
	}
	return 0;
}

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

int main() {

	int a, b, c,d;
	char e[100];

	while (cin >> a >> b) {

		c = a + b;

		d = sprintf_s(e, "%d", c);

		cout << d << endl;
	}
	return 0;
}

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



int main() {

//変数の宣言

	int a,b,sum,i=0;



/////メイン処理/////


	while(cin>>a>>b){ 
//入力
		sum = a + b;
//桁数の計算
	
		while(1){
			if (pow(10,i)<=sum && pow(10,i+1) > sum){
				cout << i+1 <<endl;
				break;
			}
			i++;
		}
		
		i = 0
	}
	
	
	return 0;
}

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

// 引数xの桁数を返す関数
// ※xは正の整数でなければならない
int keta(int x){
	int k=0;
	while(x > 0){
		x /= 10;
		k++;
	}
	return k;
}

main(){
	int a,b;
	// 入力の終わりまで繰り返す
	while(cin >> a >> b){
		
		// a+b の桁数を計算して出力する
		printf("%d\n", keta(a+b));
	}
}

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

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

C++: #include<iostream>
using namespace std;
 
void digitLength()
{
    int a = 5;
    int b = 7;
    int len = 1;
    int div;
    
    int var = a+b;
    
    while(1)
    {
        div = var / 10;
        
        if(div == 0)
            break;
        var = div;
        len++;
        
    }
    
    cout<<len;
    return;
}
 
 
int main(){
 
    digitLength();
    return 0;
}

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

int digitCount(int number)
{
    int result = 1;
    while (number > 9) {
        number /= 10;
        result++;
    }
    return result;
}

int main(int argc, const char * argv[]) {

    std::string line;
    std::vector<int> sum;
    int n1 = 0;
    int n2 = 0;
    
    while (std::getline(std::cin, line))
    {
        sscanf((const char*) line.c_str(), "%d %d", &n1, &n2);
        sum.push_back(digitCount(n1 + n2));
        
    }
    std::cout << std::endl;
    std::cout << std::endl;
    
    std::vector<int>::iterator it = sum.begin();
    std::cout << *it << std::endl;
    
    while (++it < sum.end()) {
        
        std::cout << *it << std::endl;
    }
    
    return 0;
}