X=input() x=int(X) if(x==0 or x==4 or x==10): print("yes") else: print("NO")