Program Zif_4_7_g(input,output);
var x:real;
begin
     read(x);
     x:=sin(x-trunc(x/pi/2)*pi/2);
     write(x:0:5)
end.