let () =
  Scanf.scanf "%s %s\n" @@ fun a b ->
  let num = int_of_string (a ^ b) in
  let ans = ref false in
  for n = 1 to 400 do
    if n * n = num then ans := true
  done;
  Printf.printf "%s\n" (if !ans then "Yes" else "No")