d = input() if d.strip() == "OCT 31" or d.strip() == "DEC 25": print("yup") else: print("nope")