local a, b = io.read("*n", "*n") local r = false for i = 1, a do if a % i == 0 and i % b == 0 then r = true break end end print(r and "YES" or "NO")