n = int(input()) if n == 0 or n == 4 or n == 10: print("Yes") else: print("No")