n=int(input()) print("Yes" if n%90==0 and n//90%2==1 else "No")