n=int(input()) if n==0: print("No") elif n%90==0 and n%180!=0: print("Yes") else: print("No")