package main

import (
  "fmt"
  "strconv"
)

func main() {
    var a, b int
    fmt.Scan(&a, &b)
	c := strconv.Itoa(a)+strconv.Itoa(b)
    fmt.Print(c)
  
  i, _ := strconv.Atoi(c)
	//fmt.Println(i)
  
 	x := 0
 	answer := 0
	hit := false
 	for (x * x) < i { 
    	x++
      	answer = x * x
      if (answer == i){
        hit = true
      }
	    //fmt.Println("Value of i is now:", answer)
	}
  if hit {
    fmt.Println("Yes")
  }else{
    fmt.Println("No")
  }
}
