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