import java.util.Scanner import scala.collection.mutable._ object no36{ def main(args:Array[String]):Unit = { var n = scala.io.StdIn.readLong val res = ListBuffer[Int]() for(i <- 2 to (Math.sqrt(n).toInt+1)){ while(n%i == 0){ res += i n /= i } } if(n != 1) res += n.toInt if(2 < res.size){ println("YES") }else{ println("NO") } } }