-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMain.java
More file actions
37 lines (28 loc) · 667 Bytes
/
Copy pathMain.java
File metadata and controls
37 lines (28 loc) · 667 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package a3;
import java.util.Scanner;
/**
*
* @author SSKAHLON
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
if(n%2==0){
if(2<=n&&n<=5)
System.out.println("Not Weird");
if(6<=n&&n<=20)
System.out.println("Weird");
if(21<=n)
System.out.println("Not Weird");}
if(n%2!=0)
System.out.println("Weird");
}
}