'use strict'

const main = input => {
	const args = input.split('\n').map(arg => arg.split(' '))
	const N = parseInt(args[0][0], 10)
	let ans = false

	for (let i = 1; i <= 9; i++) {
		for (let j = 1; j <= 9; j++) {
			if ((i * j) === N) ans = true
		}
	}

	if (ans) console.log('Yes')
	else console.log('No')
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'))
