import strutils, tables proc isUsableNum(a: int): bool = var x = a dic = initCountTable[int]() i = 2 while i * i <= a: while x mod i == 0: inc dic, i x = x div i inc i if x != 1 and x != a: inc dic, x var cnt = 0 for k, v in dic: cnt += v if cnt >= 3: return true proc main: void = let n = parseInt readLine stdin ["NO", "YES"][n.isUsableNum.int].echo when isMainModule: main()