package main import ( "fmt" ) func main() { var q, j int fmt.Scan(&q, &j) if j%q == 0 { fmt.Println(j / q) } else { fmt.Println("NO") } }