Last active
February 24, 2020 12:14
-
-
Save shishircse06/194f73a1df3bcf0ee6f5dbad0ad53192 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
import math | |
import os | |
import random | |
import re | |
import sys | |
if __name__ == '__main__': | |
n = int(input().strip()) | |
if n % 2 == 1: | |
print("Weird") | |
elif n % 2 == 0 and 2 <= n <= 5: | |
print("Not Weird") | |
elif n % 2 == 0 and 6 <= n <= 20: | |
print("Weird") | |
else: | |
print("Not Weird") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment