#include<cstdio>
#include<algorithm>
#include<cmath>

using namespace std;

int main(){
        double i, a, b;
        scanf("%lf%lf", &a, &b);
        printf("%d\n", (int)ceil((a + b) / 10.0));
        return 0;
}
 