Weird Numbers
Given an integer as input, can you check the following:
- If is odd then print "Weird"
- If is even and, in between range 2 and 5(inclusive), print "Not Weird"
- If is even and, in between range 6 and 20(inclusive), print "Weird"
- If is even and , print "Not Weird"
Input Format
Single line of input: integer .
Constraints
Output Format
Print "Weird" if the number is weird; else, not "Not Weird" without the quotes.
Sample Input 1
3
Sample Output 1
Weird
Sample Input 2
24
Sample Output 2
Not Weird
xxxxxxxxxx
12
1
import java.io.*;
2
import java.util.*;
3
import java.text.*;
4
import java.math.*;
5
import java.util.regex.*;
6
7
public class Solution {
8
9
public static void main(String[] args) {
10
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
11
}
12
}