import math n = int(input()) res = 'NO' if n <= 3: res = 'NO' else: for d in range(3, math.ceil(sqrt(n)), 2): if n % d == 0: res = 'YES' break print(res)