{
TASK:darts
LANG:PASCAL
}
program darts;
uses
  math;
var
  x1,y1,x2,y2,x3,y3:double;
  i,j:longint;
function rast(x1,y1,x2,y2:double):double;
begin
 rast:=sqrt(sqr(x2-x1)+sqr(y2-y1));
end;
function comp(x,y:double):longint;
var
  a:double;
  mul,num:longint;
begin
 a:=rast(x,y,24.0,24.0);
 if (a>=0.0) and (a<=0.5) then begin comp:=50; exit; end;
 if a<=1.0 then begin comp:=25; exit; end;
 if a>20.0 then begin comp:=0; exit; end;
 mul:=1;
 if (a>=9.5) and (a<=10.0) then mul:=3;
 if (a>=19.5) and (a<=20.0) then mul:=2;
 if (x=24.0) and (y=34.0) then num:=20;
 if (x=24.0) and (y=14.0) then num:=3;
 if (x>=4.0) and (x<=24.0) and (y=24.0) then num:=11;
 if (x>24.0) and (y=24.0) then num:=6;
 comp:=num*mul;
end;
begin
   readln(x1,y1,x2,y2,x3,y3);
   writeln(comp(x1,y1)+comp(x2,y2)+comp(x3,y3));
   readln
end.
