program probb
	implicit none
    integer :: a, i
    bool :: check
    read(*,*) a
    check = false
    do i = 1, 9
    	if(mod(a,i) == 0 .and. a/i <= 9) then
        	check = true
        end if
   	end do
    if(check) then
    	write(*,*) "Yes"
    else
    	write(*,*) "No"
    end if
    
    
    stop
end program probb