Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class Main {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int n = scanner.nextInt();
- scanner.close();
- if ((n%2==1) ||((n%2==0) && (n>6 &&n<=20))) System.out.println("Weird");
- else if((n%2==0) && ((n>=2 &&n<=6) || (n>20))) System.out.println("Not Weird");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement