n = gets.chomp.to_i
flag=0
9.times {|ii|
  i=ii+1
  9.times {|jj|
    j=jj+1
    if(i*j == n) then
      flag = 1; break
    end
  }
  if(flag==1) 
    break
  end
}

if(flag==1)
  puts "Yes"
else 
  puts "No"
end