from sys import stdin def main(): input = lambda: stdin.readline()[:-1] X = int(input()) if X in (0, 4, 10): print('Yes') else: print('No') main()