let N = readline()

let divisible = false

for(let i = 9; i >=1; i--) {
	let divided = N/i
	if((Math.floor(divided) === divided) && divided >= 1 && divided <= 9) {
		divisible = true
	}
}

if(divisible) {
	console.log('Yes')
} else {
	console.log('No')
}