defmodule Main do
  def main do
      [a, b] =
      IO.read(:line)
      |> String.trim
      |> String.split(" ")
    n = String.to_integer(a <> b)
    if :math.sqrt(n) |> Float.round == :math.sqrt(n) do
      IO.puts("Yes")
    else
      IO.puts("No")
    end
  end
end
