N = int(input()) result = 'NO' if N == 0 or N == 1 or N == 2: result = 'NO' else: for i in range(2, N // 2): if N % i == 0: result = 'YES' break print(result)