import java.util.Scanner 
import scala.math.sqrt
import scala.math.floor
object Main extends App{
	val scanner = new Scanner(System.in)
	val a = scanner.next
	val b = scanner.next
	val ab = a + b
	scanner.close
	val num = ab.toInt
	if(sqrt(num) ==  floor(sqrt(num))){
		println("Yes")
	}else{
		println("No")
	}
	
}