import sys if sys.platform == 'ios': sys.stdin = open('in.txt') sys.setrecursionlimit(10**6) x = int(input()) ans = 'Yes'if x in [0,4,10] else 'No' print(ans)