import java.util.Scanner; public class OddEvens { public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.print("Please enter an Integer here: "); int N = sc.nextInt(); sc.close(); if (N % 2 != 0) { // N is odd System.out.println("Weird"); } else { // N is even if (N >= 2 && N <= 5) { System.out.println("Not Weird"); } else if (N >= 6 && N <= 20) { System.out.println("Weird"); } else if (N > 20) { System.out.println("Not Weird"); } } } }