#include <stdio.h>
int main()
{
int wi;
float ab;
scanf("%4d%4.2f", &wi, &ab);
if(ab>wi&&(wi%5==0))
printf("%4.2f", (ab-wi-0.5));
else
printf("%4.2f", ab);
}
i don't know why it is showing runtime error. i tested it with the examples, and they are working.