#include <stdio.h> int main() { double y,x; scanf("%lf", &x); y = x * x * x + 3 * x * x - 7 * x + 6; printf("%.2lf", y); return 0; }