import java.util.Scanner;
/** While2 is part of a lesson on while loope.
  @author Fred Kral
  */
public class While2 {
   public static void main(String[]	args){
   
      System.out.println("begin");
   
      Scanner sc = new Scanner(System.in);
   
      int i = 0;
      boolean keepgoing = true;
      String test = "y";
      /* This loop quits int he middle because....
      multiline comment */
      
      while (true) {
      
         System.out.print("loop " + i + " ");

     
         test = sc.next();
      

         keepgoing = ! test.substring(0,1).toLowerCase().equals("n");
         if (! keepgoing) {
            System.out.println("continue");
            break;// hasta manana
         }
                  i++;

         
         System.out.println (" " + test);
      
      }
   
      //System.out.println("end");
   
   
   }
}