#include<stdio.h>
int main()
{
double x,y;
scanf("%lf",&x);
if(x<0)
y=x;
else
if(x>=100)
y=5*x;
else
if(x<50)
y=3*x-2;
else
y=4*x+1;
printf("y=%lf",y);
getchar();
getchar();
return 0;
}