MOD = 10 ** 9 + 7 INF = 10 ** 10 import sys sys.setrecursionlimit(100000000) dy = (-1,0,1,0) dx = (0,1,0,-1) from collections import deque def main(): x = int(input()) if x == 0 or x == 4 or x == 10: print('Yes') else: print('No') if __name__ =='__main__': main()