defmodule Main do def input, do: IO.read(:line) |> String.trim def ii, do: input() |> String.to_integer def li, do: input() |> String.split |> Enum.map(&String.to_integer/1) import Integer def divide_loop(x, d) do case rem(x, d) do 0 -> divide_loop(div(x, d), d) _ -> x end end def main do [a, b] = li() x = div(b, gcd(a, b)) res = divide_loop(divide_loop(x, 2), 5) case res do 1 -> "No" _ -> "Yes" end |> IO.puts end end