program ABC144B
    implicit none
    integer::N,i
    integer::result=0

    read*,N

    do i=1,9
        if(mod(N,i)==0 .and. N/i<=9) then
            result=1
        endif
    end do

    if(result==0) then
        print'(A)',"No"
    else
        print'(A)',"Yes"
    end if
end program ABC144B