x = int(input()) lst = [0,4,10] if x in lst: print('Yes') else: print('No')