1import math
2import os
3import random
4import re
5import sys
6
7
8
9if __name__ == '__main__':
10 n = int(raw_input().strip())
11
12 if (n % 2) == 0 & (2 < n < 6) & (n>20):
13 print ("not weird" )
14
15 elif (n % 2) == 1 & (6 < n < 20):
16 print ("weird")
17
18 else :
19 print ("weird")
20
21
22
23