N = int(input()) i = 2 divisors = [] while i*i <= N: remainder = N % i if remainder == 0: divisors.append(i) if len(divisors) == 2: print('YES') exit() i += 1 print('NO')