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