import java.util.*;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int n;
n=sc.nextInt();
for(int i=n; i>0;){
System.out.printf(i + " bottle" + (i==1?"":"s") + " of beer on the wall, " + i + " bottle" + (i--==1?"":"s") + " of beer.\n");
if(i==0) System.out.printf("Take one down and pass it around, no more bottles of beer on the wall.\n\n");
else System.out.printf("Take one down and pass it around, " + i + " bottle" + (i==1?"":"s") + " of beer on the wall.\n\n");
}
System.out.printf("No more bottles of beer on the wall, no more bottles of beer.\n" +
"Go to the store and buy some more, " + n + " bottle" + (n==1?"":"s") + " of beer on the wall.");
}
}