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