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