unittest
{
	assert( [ "575" ].parse.expand.solve == "Yes" );
	assert( [ "123" ].parse.expand.solve == "No" );
	assert( [ "812" ].parse.expand.solve == "No" );
}



import std.conv;
import std.range;
import std.stdio;
import std.string;
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.strip;
	return tuple( n );
}

auto solve( string n )
{
	return ( n[ 0 ] == n[ 2 ] ) ? "Yes" : "No";
}
