I'm getting a runtime error on the ATM problem given in the beginer section.Can i get help figuring it out?

import java.util.*;
class ATM{
public static void main (String[] args){
Scanner in = new Scanner(System.in);
long x,y;
double z;
x=in.nextInt();
y=in.nextInt();
if(x%5==0&&y>x){
z=y-(x+0.50);
System.out.println(z);
}
else if(y<x){
z=y;
System.out.println(z);
}
else{
z=y;
System.out.println(z);
}
}
}

//