w=' on the wall'
c=', '
n='.\n'
N=lambda i:('no more'if i==0 else str(i%100))+' bottle'+(''if i==1 else's')+' of beer'
Q=lambda i:'Go to the store and buy some more'if i==0 else'Take one down and pass it around'

for i in range(99,-1,-1):
    print N(i).capitalize()+w+c+N(i)+n+Q(i)+c+N(i-1)+w+n
