package main import . "fmt" func main() { var n,c,x,m int64 Scan(&n) for x,m=2,n;x*x<=m;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") } }