n = int(input()) n = n % 360 if n == 90 or n == 270: print("Yes") else: print("No")