#include <stdio.h>
#include <stdlib.h>
int main()
{
double x , y;
int h;
scanf("%lf %lf",&x,&y);
if((x - 2)*(x - 2) + (y - 2)*(y - 2) <= 1 || (x - 2)*(x - 2) + (y + 2)*(y + 2) <= 1 || (x + 2)*(x + 2) + (y - 2)*(y - 2) <= 1 || (x + 2)*(x + 2) + (y + 2)*(y + 2) <= 1){
h = 10;
}else h = 0;
printf("%d",h);
return 0;
}