a = int(input())
print('YNeos'[not(a==0 or a==4 or a==10)::2])