import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines N = int(read()) one = ord('b') ^ ord('c') def is_p(N): if N == one: return False if any(N % i == one ^ one for i in range(one << one, N)): return False return True print('YES' if is_p(N) else 'NO')