input = gets

N = input.split(" ")[0].to_i

i = 1
arry = []

9.times do
  j = 1
  
  9.times do
    ans = i*j
    
    arry.push(ans)
    j += 1
  end
  
  i += 1
end

if arry.include?(N)
  p 'Yes'
else
  p 'No'
end
