#include <stdio.h>
#include <math.h>
int main()
{ float x,y,a,d,h,H=10;
scanf("%f,%f",&x,&y);
if (x>0,y>0) d=sqrt((x-2)*(x-2)+(y-2)*(y-2));
else if (x<0,y>0) d=sqrt((x+2)*(x-2)+(y-2)*(y-2));
else if (x<0,y<0) d=sqrt((x+2)*(x-2)+(y+2)*(y-2));
else if (x>0,y<0) d=sqrt((x-2)*(x-2)+(y+2)*(y-2));
else h=0;
a=d*H;
h=H-a;
printf("%d\n",h);
return 0;
}
#include <math.h>
int main()
{ float x,y,a,d,h,H=10;
scanf("%f,%f",&x,&y);
if (x>0,y>0) d=sqrt((x-2)*(x-2)+(y-2)*(y-2));
else if (x<0,y>0) d=sqrt((x+2)*(x-2)+(y-2)*(y-2));
else if (x<0,y<0) d=sqrt((x+2)*(x-2)+(y+2)*(y-2));
else if (x>0,y<0) d=sqrt((x-2)*(x-2)+(y+2)*(y-2));
else h=0;
a=d*H;
h=H-a;
printf("%d\n",h);
return 0;
}