B,O,W,M,S,C,P="bottle","of beer","on the wall","o more","s",",",".\n";Z=B+S for i in range(99,0,-1): if i==1: X="1 "+B else: X=str(i)+" "+Z if i-1==1: Y="1 "+B elif i-1==0: Y="n"+M+" "+Z else: Y=str(i-1)+" "+Z print X,O,W+C,X,O+P,"Take one down and pass it around,",Y,O,W+P print "N"+M,Z,O,W+C,"n"+M,Z,O+P,"Go to the store and buy some more. 99",Z,O,W+"."