#include <stdio.h>
#include<math.h>
int main()
{
float x,y;
printf ("input x:\n");
scanf("%f",&x);
if (x>=-7&&x<=10)
{
y=(5*(x^2)-4*x+6;
printf("y=%.3f",y);
}
else
{
y=(1/3)*x+32;
printf("y=%.3f",y);
}
return 0;
}