Uses crt;
var a,b,c,d,x,r,r1:integer;
begin
readln(a,b,c,x);
if ((x > a) and (x < b)) then
writeln('true') else writeln('false');
if (x mod 2=1) then
writeln('true') else writeln('false');
d:=sqrt(sqr(b)-4*a*c);
r:=(-b+d)/(2*a);
r1:=(-b-d)/(2*a);
if ((x = r) or (x = r1)) then
writeln('true') else writeln('false');
end.