import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) n = int(read()) if n % 90 == 0 and (n // 90) % 2 == 1: print('Yes') else: print('No')