x = int(input()) if x != 0 and x != 2 and x != 5: print("No") else: print("Yes")