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