public class GreenBottles {
  public static void main(String[] args) {
    int bottles = 10;
    while (bottles > 0) {
      System.out.println( bottles + "green bottles hanging on the wall,");
      System.out.println( bottles + "green bottles hanging on the wall,");
      System.out.println( "and if one green bottle should accidentally fall," );
      System.out.println( "they'll be" + (bottles-1) + "green bottles hanging on the wall.");
      System.out.println();
      bottles = bottles - 1;
    }
    System.out.println("All gone");
  }
}
