unittest
{
	assert( [ "10" ].parse.expand.solve == "Yes" );
	assert( [ "50" ].parse.expand.solve == "No" );
	assert( [ "81" ].parse.expand.solve == "Yes" );
}



import std.conv;
import std.range;
import std.stdio;
import std.typecons;

void main()
{
	stdin.byLineCopy.parse.expand.solve.writeln;
}

auto parse( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto n = input.front.to!( long );
	return tuple( n );
}

auto solve( long n )
{
	foreach( a; 1 .. 10 )
	{
		foreach( b; 1 .. 10 )
		{
			if( a * b == n ) return "Yes";
		}
	}
	return "No";
}
