#include <stdio.h> int main(){ double r; double x1; if (scanf("%lf",&x1)!=EOF){ if (x1>=0){ if (x1<=50){r=0.53*x1;} if(x1>50){r=0.53*x1+0.05*(x1-50);} printf("cost = %.2lf",r); }else{ printf("Invalid Value!"); } }else{ printf("input wrong"); } return 0; }