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)) if k.len >= 3: echo "YES" else: echo "NO"