float fun(float x)
{
if(x<200)
return x;
else if(x>=200&&x<500)
return 0.8*x;
else if(x>=500)
return 0.6*x;
}