atm = 150000
H = 22
charge = 500
answer = 0

if H <= 9 or H >= 18:
  charge = charge * 2
if atm >= 100000:
    charge = 0

answer = atm + charge
print(answer)

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: