s = input()
print("yes" if s[0] == "1" and (s[1] == "3" or s[1] == "5" or s[1] == "8") else "no")