fun main(arr:Array) { val num = readLine()!!.toLong() val ans = if(canUse(num)) "YES" else "NO" println(ans) } fun canUse(num:Long):Boolean { var cur = 2.toLong() var target = num; var ans = 0 while (target > 1.toLong() && cur < target) { while (target % cur == 0.toLong()) { ans++; target = target / cur if(ans >= 3) { return true } } cur++ } return false }