program p; var x: real;begin read(x); if x < 0 then write(exp(cos(x))) else if x <= 2 then write(-2 * x) else write(1 - x * x * x)end.