program eighty_one
  implicit none
  integer :: n, i
  read(*,*) n
  do i = 1, 9
    if (mod(n,i) == 0 .and. n/i < 10) goto 100
  end do
  write(*,'(a)') "No"
  stop
100 write(*,'(a)') "Yes"
end program eighty_one