#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 judge[210]={-1};
    int count = 0;
    while(cin >> number1 >> number2)
    {
        judge[count] = ((number1+number2) / 10)+1;
        count++;
    }
    REP(i, count)
    cout << judge[count] << endl;
    return 0;
}