import sys input=sys.stdin.readline def I(): return int(input()) def MI(): return map(int, input().split()) def LI(): return list(map(int, input().split())) def main(): mod=10**9+7 x=I() if x==0 or x==4 or x==10: print("Yes") else: print("No") main()