Skip to content

Instantly share code, notes, and snippets.

@shishircse06
Created February 24, 2020 12:17
Show Gist options
  • Save shishircse06/9f15c23a4e402fc5af4cf292ca53224c to your computer and use it in GitHub Desktop.
Save shishircse06/9f15c23a4e402fc5af4cf292ca53224c to your computer and use it in GitHub Desktop.
#!/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 n in range(2,6):
print("Not Weird")
elif n % 2 == 0 and n in range(6,21):
print("Weird")
else:
print("Not Weird")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment