(defmacro input []
  (clojure.string/split (read-line) #"\s"))

(defn OTO [[A B]]
  (let [n (-> (str A B) Double/parseDouble Math/sqrt)]
    (if (= n (double (int n)))
      "Yes"
      "No")))

(-> (input)
  OTO
  println)