program main
  implicit none
  integer :: N
  integer :: i,j

  read(*,*) N
  do i = 1,9
     do j = 1,9
        if (i*j == N) then
           write(*,*) 'Yes'
           stop
        end if
     end do
  end do
  write(*,*) 'No'
  stop
end program main
