package main import . "fmt" func main() { var n,c,x int64 Scan(&n) for x=2;x*x<=n;x++ { if n%x!=0 { continue } c++ for n%x==0 { n/=x } } if n>1 { c++ } if c==2 { Println("Yes") } else { Println("No") } }