Ques :- HS08TEST Problem - CodeChef
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
int x;
double y;
Scanner sc = new Scanner (System.in);
x = sc.nextInt();
y = sc.nextDouble();
if(x%5==0 && x<y)
{
y=y-x-0.50;
}
System.out.println(y);
}