a = int(input())
if(a==0 or a==4 or a==10):  print("Yes")
else:                       print("No")