! 2019.10.27
!
      program answer
      implicit none
      integer :: N
      integer :: M
      integer :: i
      intrinsic mod
!
      read(*,*) N
!
      do i=1,9
        M = mod(N,i)
        if(M == 0 .and. N/i < 10) then
          write(*,*) 'Yes'
          exit
        end if
        if(i == 9) then
          write(*,*) 'No'
        end if
       end do
!
      end program answer
