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 if dic.len >= 3: return true for k, v in dic: if v >= 2: return true proc main: void = let n = parseInt readLine stdin ["NO", "YES"][n.isUsableNum.int].echo when isMainModule: main()