balance = 1000

price = int(input("What is the price:"))

if price > balance:  
    raise valueError ('You cannont afford this')