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