n = gets.to_i

if n<=9 then puts "Yes"
elsif n%2==0 and n/2<10 then puts "Yes"
elsif n%3==0 and n/3<10 then puts "Yes"
elsif n%4==0 and n/4<10 then puts "Yes"
elsif n%5==0 and n/5<10 then puts "Yes"
elsif n%6==0 and n/6<10 then puts "Yes"
elsif n%7==0 and n/7<10 then puts "Yes"
elsif n%8==0 and n/8<10 then puts "Yes"
elsif n%9==0 and n/9<10 then puts "Yes"
else puts "No" end