import strutils import tables proc prime_factor_elements(n : int) : CountTable[int] = result = initCountTable[int]() var n = n var i = 2 while i * i <= n: while n mod i == 0: result.inc(i, 1) n = n div i i += 1 if n > 1: result.inc(n, 1) var N = stdin.readLine.parseInt let k = (prime_factor_elements(N)) var counter = 0 for k, v in k.pairs: if k != N: counter += v echo if counter >= 3: "YES" else: "NO"