object Main extends App {
  var numList = readLine.split(" ")
  var squareNum = Math.sqrt((numList(0) + numList(1)).toFloat)
  var ceiledNum = squareNum.ceil

  if (squareNum == ceiledNum) print("Yes") else print("No")
}