a=int(input("enter a number"))
i=a%2
a=a+1
if(i==1):
    print("weird")
elif(i==0):
        if(10<=a<=30):
            print("not weird")
        elif(a>30):
            print("weird")
        else:
             print("not weird")

        

   
