package main

import "fmt"

func main() {
  var a,b int
  fmt.Scan(&a, &b)
  
  var c int
  d := (b-b%10)/10
  
  if d == 10 {
    c = 1000
  } else if d > 0 {
    c = 100
  } else {
    c = 10
  }

  s := a*c + b
  t := s
  
  if b%2 == 0 {
    t := s/2
  } 
    
  for i := 3 ; i < t ; i++ {
     if i * i == s {
      fmt.Println("Yes")
      return
    }
  }
	
  fmt.Println("No")

}
