import java.util.Scanner;

public class Twister4 {

	public static void main ( String args[] ) {

	    // declare data items
	    final int MIN_HEIGHT = 50;
	    final int MIN_AGE = 5;
	    int height = 99;
	    int age;
	    Scanner scanner = new Scanner( System.in ); // used for input
	    while ( height != 0 ) {
	    // prompt user for height and age, and read them in
	    System.out.println( "What is your height in inches?" +
				"  Enter 0 to terminate the program."  );
	    height = scanner.nextInt();
	    if ( height != 0 ) {
		System.out.println( "How old are you?" );
		age = scanner.nextInt();

		// check height, print message
		System.out.println();
		if ( (height < MIN_HEIGHT) || (age < MIN_AGE) )  {
		    System.out.println( "No ride for me :(" );
		}
		else if ( (height == MIN_HEIGHT) || ( age == MIN_AGE) ) { 
		    System.out.println( "I just made it!" );
		}
		else {
		    System.out.println( "Whee, that was fun!");
		}
		System.out.println();
	    }  //if (height != 0)
	    }  //while

	}

}    // Twister4

