#include <stdio.h>

int main()
{
    #define Q(i) i, (i==1?a:b)
    char *a = "bottle of beer",
         *b = "bottles of beer",
         *w = "on the wall.",
         *n = "o more ";
    
    for(int i=100;i-->1;)
    	printf("%i %s on the wall, %i %s.\n"
			   "Take one down and pass it around, %i %s %s\n\n",
               Q(i), Q(i), Q((i-1)), w);
    
    printf("N%s%s on the wall, n%s%s.\n"
           "Go to the store and buy some more, 99 %s %s\n", n, b, n, b, b, w);
}