#include<bits/stdc++.h>usingnamespacestd;intx;voidf(intn){if(n==0){printf("No more bottles of beer on the wall, no more bottles of beer.\n");if(x!=1)printf("Go to the store and buy some more, %d bottles of beer on the wall.",x);elseprintf("Go to the store and buy some more, %d bottle of beer on the wall.",x);return;}if(n==1){printf("1 bottle of beer on the wall, 1 bottle of beer.\n");printf("Take one down and pass it around, no more bottles of beer on the wall.\n\n");return;}printf("%d bottles of beer on the wall, %d bottles of beer.\n",n,n);if(n-1!=1)printf("Take one down and pass it around, %d bottles of beer on the wall.\n\n",n-1);elseprintf("Take one down and pass it around, %d bottle of beer on the wall.\n\n",n-1);}intmain(){intn;cin>>n;x=n;for(inti=n;i>=0;i--)f(i);}