Run time error in python

cook your dish here

Amt,Bal = input().split()
Amt = int(Amt)
Bal = int(Bal)
Atm = Amt%5
if Atm == 0:
Bal = (Bal-0.5-Amt)

I see that you are trying to solve this problem: HS08TEST Problem - CodeChef
The problem uses float datatype (Balance in the account) as an input and you are declaring it as an int type. Changing your “Bal = int(Bal)” to “Bal = float(Bal)” will solve the run time error problem.
Also there are some other logical errors in your code