let input = Scanf.scanf "%d %d\n" (fun x y -> int_of_string (string_of_int x ^ (string_of_int y))) in

let rec check x c=
  if x/2<c then false
  else if c *c =x then true
  else check x (c+1) in

let ans = if check input 1 then "Yes" else "No" in

print_string ans
;;