#include <stdio.h>
int main(void) {
int x;
float y;
scanf("%d %f",&x,&y);
if(x<=2000&&x>0&&y<=2000&&y>=0)
{
if (x>y||x%5!=0)
{
printf("%f",y);
}
else if (x+0.5<=y)
{
printf("%f",y-x-0.5);
}
}
return 0;
}
cant really figure out what I’m doing wrong please help