# beersong2.py

def refrain (bottles):
    print ("Take one down")
    print ("Pass it around")
    bottles[0] = bottles[0] - 1
    
def main ():
    numbottles = [0]
    numbottles[0] = eval (input ("Enter number of bottles to start: "))

    while numbottles[0] > 0:
        print (numbottles[0],"bottles of beer on the wall,")
        print (numbottles[0], "bottles of beer!")
        refrain (numbottles)
        print (numbottles[0], "bottles of beer on the wall!\n")
        input ("Press <return> to keep singing!")
    
    print ("Time to go home!")
main()