import java.util.Scanner;

public class ValidNumberExample {
    
    public static void main(String[] args) {
        Scanner myScanner = new Scanner(System.in);
        
        System.out.println("Please enter an integer between 1 and 31 (inclusive)");
        int number = myScanner.nextInt();
        if (number < 1) {
			System.out.println("Your number is too low");
		}else{
			if (number > 31) {
				System.out.println("Your number is too high");
			}else{
				System.out.println("Your number is valid");
				System.out.println("Good job!");
			}
		}
		
    }

}