let is_square x =
  let rec iter i =
    if i * i > x then false
    else if i * i = x then true
    else iter (i + 1)
  in float_of_int x |> sqrt |> int_of_float |> iter

let solve a b =
  let ab = a ^ b |> int_of_string in
  if is_square ab then "Yes" else "No"

let () = Scanf.scanf "%s %s" solve |> print_string