program ABC_086_B_121
   integer cval, i
   character(3) a, b
   character(6) c   
   read(*, *) a, b
   c = trim(a) // trim(b)
   read(c, *) cval
   do i = 4, 320
       if( i ** 2 <= cval) then
	       if( i ** 2 == cval) then
		       write(*, *) 'Yes'
			   exit
		   end if
	   else
	       write(*, *) 'No'
		   exit
	   end if
   end do
end program ABC_086_B_121