a = 'bottle'
b = ' of beer'
w = 'on the wall'

def D(i):
	return str(i%100) if i!=0 else 'no more'

def Q(i):
	return a+b if i==1 else a+'s'+b

def C(i):
	return '\nTake one down and pass it around,' if i>0 else '\nGo to the store and buy some more,'

for i in range(99,-1,-1):
    print D(i). capitalize(), Q(i), w+',', D(i), Q(i)+'.', C(i), D(i-1), Q(i-1), w+'.\n'
