import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main
{
public static void main(String args[])throws Exception
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
try
{
float n=Float.parseFloat(br.readLine());
float x=Float.parseFloat(br.readLine());
if((n%5!=0)||(x<(n+0.50)))
{
System.out.println(x);
}
else
{
System.out.println(x-n-0.50);
}
}
catch(Exception e)
{
e.printStackTrace();
}finally{
br.close();
}
}
}
********************* what’s wrong with this code