package main

import(
	"fmt"
	"math"
	"strconv"
)

func main(){
  var num1, num2 int
  fmt.Scanf("%d %d", &num1, &num2)
  num11 := strconv.Itoa(num1)
  num21 := strconv.Itoa(num2)
  convnum, _ := strconv.Atoi(num11 + num21)
  var ansnum float64 = math.Sqrt(float64(convnum))
  if math.Round(ansnum) == ansnum{
    fmt.Println("Yes")
  }else{
    fmt.Println("No")
  }
}