import Foundation
func toTuple<T>(_ args: [T]) -> (T, T) { (args[0], args[1]) }
func readStrings() -> [String] { readLine()!.split(separator: " ").map { String($0) } }

let (a, b) = toTuple(readStrings())
let n = floor(sqrt(Double(a + b)!))
if n == sqrt(Double(a + b)!) {
  print("Yes")
} else {
  print("No")
}