package main

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

func main() {
	var a, b string
	fmt.Scan(&a, &b)
	s := a + b
	i, _ := strconv.Atoi(s)
	n := math.Sqrt(float64(i))
	if n == math.Trunc(n) {
		fmt.Print("Yes")
	} else {
		fmt.Print("No")
	}
}
