import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int drink, drank, i;
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
int number = Integer.parseInt( input );
for(i = number; i > 1; i--){
drink = i;
drank = i-1;
System.out.println(i + " bottles of beer on the wall, " + i + " bottles of beer.");
if(drank > 1){
System.out.println( "Take one down and pass it around, " + (i - 1) + " bottles of beer on the wall.");
} else if(drank == 1){
System.out.println( "Take one down and pass it around, " + (i - 1) + " bottle of beer on the wall.");
}
System.out.println();
}
System.out.println(i + " bottle of beer on the wall, " + i + " bottle of beer.");
System.out.println("Take one down and pass it around, no more bottles of beer on the wall.");
System.out.println();
System.out.println("No more bottles of beer on the wall, no more bottles of beer.");
if(number > 1){
System.out.println("Go to the store and buy some more, "+ number +" bottles of beer on the wall.");
} else if (number == 1){
System.out.println("Go to the store and buy some more, "+ number +" bottle of beer on the wall.");
}
}
}