N = int(input()) print('Yes' if N % 90 == 0 and (N//90) % 2 == 1 else 'No')