N = int(input()) if N % 90: print('No') elif N % 180: print('Yes') else: print('No')