#include <stdio.h> int main() { float x,y; scanf("%f",&x); if(x<=10) y = x+5; else if(x>50) y = x*x-3*x+1; else y = x-10; printf("%f",y); return 0; }