function Main(input)
{
	input = parseInt(input);
	var canBeCaluculated = "No";
	var calucResultNumbers = new Set();

	for (i = 1; i <= 9; i++)
	{
		for (j = 1; j <= 9; j++)
		{
			calucResultNumbers.add(i*j)
		}
	}

	if (calucResultNumbers.has(input))
	{
		canBeCaluculated = "Yes";
	}

	console.log(canBeCaluculated)
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));