bags = float(input("How many bags of chips do you have? \n"))

while(bags > 0):
    bags = bags - 1
    print("Eating a bag of chips... %d bags left..." % bags)
    print("Crunch, crunch, yum, yum...")
    
print("Bummer, no more chips!")