package main import . "fmt" import . "math/big" func main() { var a,b int64 Scan(&a,&b) if a==0||b==0 { Println("No") return } c:=NewRat(a,b).Denom().Int64() for c%2==0 { c/=2 } for c%5==0 { c/=5 } if c==1 { Println("No") } else { Println("Yes") } }