N=int(input()) print('Yes' if N%360==90 or N%360==270 else 'No')