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<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 ret;
    ss >> ret;   
    cout << ret.size() << endl;
  }

  for(int j=0;j<=1000;j++){
    string name = "out";
    stringstream ss;
    ss << j;
    string index;
    ss >> index;
    name += index+".txt";
    ofstream ofs(name.c_str());
      ofs << string(100000,'?') << endl;
    
  }

return 0;
}

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

int main()
{
  int a,b,ans;
  int d[10]={0,1,10,100,1000,10000,100000,1000000,10000000,100000000};
  int e[10]={0,0,1,2,3,4,5,6,7,8};
  
  while(cin >> a >> b){
    int sum=a+b;
    for(int i=1;i<10;i++){
      if(d[i-1]<=sum && sum<d[i]){
	ans=e[i];
      }
    }
    cout << ans << endl;
  }
  
  return 0;
}

C++: #include "stdafx.h"
#include<iostream>
#include<string>
using namespace std;

int main()
{ 
	int i1, i2;
	cin >> i1 >> i2;
	i1 += i2;
	i2 = 0;
	while (i1) {
		i2++;
		i1 /= 10;
	}
	cout << i2 << endl;
    return 0;
}

C++: #include<iostream>

using namespace std;

int main()
{
	int num[2];
	int numLength = sizeof(num) / sizeof(num[0]);
	int n;
	int sum;
	while(1){
		n = 1;
		sum = 0;
		
		int h;
		for(h = 0; h < numLength; h++)
		{
			cin >> num[h];
			sum += num[h];
		}
		
		while(sum/10 != 0){
			n++;
			sum = sum / 10;
		}
		
		cout << n << endl;
		
	}
	return(0);
}

C++: #include<stdio.h>

int calc(int x,int y){
  int a,t,k =0;
  t = x+y;
  while(t){
    t = t/10;
    k += 1;
  }
  return k;
}
int main(void){
  int a,b;
  while(scanf("%d %d",&a,&b) != EOF){
    printf("%d\n",calc(a,b));
  }
}

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

using namespace std;

int main(){
	int a,b;
	
	while(cin>>a>>b)
	{
		a = a+b;
		a = (int)log10(a)+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;
	c = a+b;

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

C++: //
// Created by Undefined on 2018/2/2.
//

#include <iostream>

using namespace std;

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

C++: #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const ll MOD = 1e9 + 7/*998244353*/;
const ll INF = 1LL << 60;
ll mod_pow(ll, ll, ll); ll mod_fact(ll, ll); ll mod_inv(ll, ll); ll gcd(ll, ll); ll lcm(ll, ll);
//
int main(){
    int a, b;
    while(cin >> a >> b){
        cout << to_string(a + b).size() << "\n";
    }
}

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)+sum(b));
}

return 0;
}

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

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

C++: #include<cstdio>
using namespace std;
int main(){
printf("hello world\n");
return 0;
}

C++: #include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <deque>
#include <list>
#include <string>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>

using namespace std;

int main() {
	int a = -1;
	int b = -1;

	cin >> a >> b;

	while (a != -1) {
		for (int i = 1; i <= 7; i++) {
			if (a + b < pow(10, i)) {
				cout << i << endl;
				break;
			}
		}

		a = -1;
		cin >> a >> b;
	}

	return 0;
}

/*@@@@@@@@@@@@@@@@@@@@@@@@@*/
/*@                       @*/
/*@ debug output erased ? @*/
/*@                       @*/
/*@@@@@@@@@@@@@@@@@@@@@@@@@*/

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

int main(){
  int a, b;
  while(scanf("%d %d", &a, &b)){
    int sum = a + b, cnt = 1;
    while(sum /= 10) cnt++;
    cout << cnt << endl;
  }
}

C++: #include <iostream>
#include <queue>
#include <cmath>

using namespace std;

int main ()
{
    int i, j, d;
    while (cin >> i >> j) {
        cout << (d = (int)log10(i + j) + 1) << endl;
    }
    return 0;
}

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

using namespace std;
#define MAX_N 200
unsigned a[MAX_N],b[MAX_N];
unsigned s[MAX_N];
int Count[MAX_N];
int main(){
  for(int i = 0;i < 3;i++){
  Count[MAX_N] = 0;
  scanf("%u %u",&a[i],&b[i]);
  s[i] = a[i]+b[i];
  for(; s[i] !=0; s[i]/=10){
    Count[MAX_N]++;
  }
  }
  for(int i = 0;i < 3;i++){
  cout << Count[i]<<endl;
  }
}

C++: #include <iostream>

using namespace std;

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

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

int GetDigit(const int n)
{
	int Digit = 1;
	int m = n;
	while(true){
		m /= 10;
		if(m == 0) break;
		Digit++;
	}
	return Digit;
}

int main()
{
	int a, b;
	while(true){
		cin >> a >> b;
		if(cin.eof()) break;
		cout << GetDigit(a+b) << endl;
	}
	return 0;
}

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

using namespace std;


int main()
{
	int a, b;
	cin >> a >> b;
	while (a != -1){
		int c = log10(a + b) + 1;
		cout << c << endl;
		cin >> a >> b;
	}
	
}

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

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

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

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

int main(){
	int a,b,c;
	int ans;
	
	string cunning="7767555555555555555";
	
	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++: //
//  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<=1000000000000;j=j*10){
            if(i+o>=j){
                b++;
            }else{
                break;
            }
        }
        cout<<b<<endl;
        }
}