n = int(input()) if n == 0 or n == 4 or n == 10: print("YES") else: print("NO")