python 3.x code throwing runtime error NZEC in ATM

my code is this:-

def atm(a,b):
   if a>0 and a<=2000 and b>=0 and b<=2000:
      if a%5==0 and a<b:
         print (float((b-a)-0.50))
      else:
         print (float(b))

x,y=int(input('')),int(input(''))
atm (x,y)

and the question is this:-

but it is showing runtime error NZEC…plz help!

Instead of

x,y=int(input(’’)),int(input(’’)),

use x,y=raw_input().split(’ ')

x=float(x)

y=float(y)

because the input values have two digits of precision ,means they are not perfect integers.

1 Like

but I have used float in def atm…and even after using split it does the same