Program qqq; uses crt;
var x,y:real;
BEGIN
writeln('vvedite x');
readln(x);
y:=2*x*x*x+7*x*x-3*x+6;
writeln('otvet ',y:5:2);
readln;
END.