program problemB
  implicit none

  integer   :: N, i, tf

  tf = 0

  read *, N

  do i = 1, 9
     if ( real ( N ) / i <= 9 .and. &
        & real ( N ) / i == real ( N / i ) ) then
        print *, "Yes"
        tf = 1
        exit
     end if
  end do

  if ( tf == 0 ) then
     print *, "No"
  end if
  
  
end program problemB
