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

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