n=int(input()) while n>360: n-=180 if n==90 or n==270: print('Yes') else: print('No')