#!/bin/bash
read a
for i in `seq 1 9`
do
    if [[ $((a%$i)) -eq 0 ]] && [[ $((a/$i)) -le 9 ]]; then
        check=1
        break;
    fi
done

if [[ check -eq 1 ]]; then
    echo "Yes"
else
    echo "No"
fi