program main
  implicit none
  
  integer :: n,i,j
  
  read(*,*)n
  
  do i = 1, 9
    do j = i, 9
      if (n == i*j) then
        write(*,*)'Yes'
        stop
      endif
    end do
  end do
  write(*,*)'No'
end program main
