#include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>

#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

int main(void){
    
    int number1,number2;
    int counter = 0;
    int answer[220] ={-1};
    while(scanf("%d %d",&number1,&number2) != EOF)
    {
        answer[counter]=((((number1+number2) /10))+1);
        counter++;
    }

    REP(i, counter)
    cout << answer[i] << endl;
    return 0;


}