program main
 implicit none
 integer n,i,flag
 read(*,*) n
 flag = 0
 do i=1,9
  if(mod(n,i) == 0 .and. (n/i) < 10) then
   write(*,*) 'Yes'
   flag = 1
   exit
  end if
 end do
 
 if(flag == 0) then
  write(*,*) 'No'
 end if
end program main
 