package main import "fmt" func main() { var a, b int fmt.Scan(&a, &b) var count int for { if a%b == 0 { fmt.Println("No") break } else { count++ if count > 9 { fmt.Println("Yes") break } a = 10 * (a % b) } } }