N = int(input()) print('Yes' if N % 360 in [90, 270] else 'No')