// ¹84
var f,x:real;
begin
writeln('Vvedite x');
readln(x);
if (x<=0) then f:=0 else if (0<x) and (x<=1) then f:=x else f:=sqr(x);
writeln(f);
end.