program probB
  implicit none
  integer a,b,c
  character char_a*3,char_b*3,char_c*6

  read(*,*) a,b
  
  write(char_a,'(I3)') a
  write(char_b,'(I3)') b

  char_c=trim(adjustl(char_a))//trim(adjustl(char_b))

  read(char_c,*) c

  if(int(sqrt(dble(c)))**2==c) then
     write(*,*) 'Yes'
  else
     write(*,*) 'No'
  end if
  
end program probB
