import sys input = sys.stdin.readline x = int(input()) if x == 0 or x == 2 or x == 5: print("Yes") else: print("No")