const main = stdin => {
  const input = stdin.trim().split('\n')
  const [a, b] = input[0].split(' ')

  const c = parseInt(a + b)
  for (let i = 1; i <= c / 2; i++) {
    if (i * i === c) {
      console.log('Yes')
      return
    }
  }
  console.log('No')
}


// 標準入力
main(require("fs").readFileSync("/dev/stdin", "utf8"))
