import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) if n%90==0 and (n//90)%2==1: print("Yes") else: print("No")