The problem defines "weird" and "not weird" based on these rules: If N is odd, print "Weird"
If N is even and between - (inclusive), print "Not Weird"
If N is even and between - (inclusive), print "Weird"
If N is even and greater than , print "Not Weird" To check odd/even, use the modulo operator: N % 2 == 0 means even, N % 2 != 0 means odd. The order matters less here because odd vs even is mutually exclusive. But within the even cases, you need correct range checks.