unittest
{
	assert( [ "5 3", "96 98 95 100 20" ].solve == "Yes\nNo" );
	assert( [ "3 2", "1001 869120 1001" ].solve == "No" );
	assert( [ "15 7", "3 1 4 1 5 9 2 6 5 3 5 8 9 7 9" ].solve == "Yes\nYes\nNo\nYes\nYes\nNo\nYes\nYes" );
}



import std.conv;
import std.format;
import std.range;
import std.stdio;

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

auto solve( Range )( Range input )
if( isInputRange!Range && is( ElementType!Range == string ) )
{
	auto n = 0L;
	auto k = 0L;
	input.front.formattedRead!"%s %s"( n, k );
	input.popFront;
	auto as = input.front.split.to!( long[] );
	
	auto anss = new string[ n - k ];
	foreach( i, ref ans; anss )
	{
		ans = ( as[ i ] < as[ k + i ] ) ? "Yes" : "No";
	}
	return anss.join( "\n" );
}
