#!/bin/bash

typeset -i A=0
VALUES="1 10 12 14 15 16 18 2 20 21 24 25 27 28 3 30 32 35 36 4 40 42 45 48 49 5 54 56 6 63 64 7 72 8 81 9"
read A
for V in $VALUES
do
        if [[ $A -eq $V ]]; then
                echo "Yes"
                exit
        fi
done
echo "No"
