fir = int(input()) num_k = int(fir/90) num_a = int(fir%90) if num_a ==0: if num_k%2 !=0: print("Yes") else: print("No") else: print("No")