var x,y : real;
b:boolean;
begin
b:=False;
read(x,y);
if (x<0) or (y<0) then b:=True;
Writeln(b);
end.
var x,y : real;
b:boolean;
begin
b:=False;
read(x,y);
if (x<0) or (y<0) then b:=True;
Writeln(b);
end.