import java.util.Scanner;
import java.util.Random;

public class numgame {

public static void main(String[] args) {
Scanner kbd = new Scanner(System.in);
Random randNumb = new Random();
int high = 100;
int low = 1;
int answer = randNumb.nextInt(98)+2;
System.out.print("Guess a number between "+ low + " and " + high );
int guess = kbd.nextInt();
int count = 1;
String gratz = null;

while(guess !=answer)
{
if(guess > answer)
{
high = guess;
System.out.print("Too high, the number is between " + low + " and " + high + "." + "\nTry Again" );
guess = kbd.nextInt();
count++;
}
else
{
low = guess;
System.out.print("Too low, the number is between " + low + " and "+ high + "." + "\nTry again.");
guess = kbd.nextInt();
count++;
}
}
switch(count)
{
case 1: case 2:
gratz = "Are you sure you're not cheating?";
break;


case 3: case 4:
gratz = "You got lucky.";

break;

case 5: case 6:
gratz = "Nice job.";
break;
case 7: case 8:
gratz = "Not bad.";
break;
case 9: case 10:
gratz = "Not so hot.";
break;
case 11: case 12:
gratz = "Pathetic.";
break;


}

if (guess == answer)
{ System.out.print(gratz);




}


}
}