using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

// using System.Numerics;
using System.Runtime.CompilerServices;
using System.Diagnostics;
using static System.Math;
using ll=System.Int64;
using static Contest_C.Lib_IO;
using static Contest_C.Lib_Minifunc;



public static class Contest_C
{

	public static void Main() {
		checked{
			long n, k;
			Lib_IO.rm(out n, out k);
			ll[] a;
			ra(out a);

			List<string> ans = new List<string>();

			for (int i = (int)k; i < n; i++)
			{
				if(a[i-k]<a[i]) ans.Add("Yes");
				else ans.Add("No");
			}


			Lib_IO.wl(ans);
		}
	}




	public static class MathD {
		public const decimal PI = 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679m;
		public const decimal E  = 2.7182818284590452353602874713526624977572470936999595749669676277240766303535475945713821785251664274m;
		private const decimal EPS = 0.000000000000000000000000001m;
		// Sin(1) = 0.841470984807896506652502321630298999622563060798371065672751709991910404391239668948639743543052695
		public static decimal Sqrt(decimal x, decimal epsilon = 0.0M) {
			if (x < 0) throw new OverflowException("Cannot calculate square root from a negative number");
			decimal cur = (decimal)Math.Sqrt((double)x), prev;
			do {
				prev = cur;
				if (prev == 0.0M) return 0;
				cur = (prev + x / prev) / 2;
			}
			while (Math.Abs(prev - cur) > epsilon);
			return cur;
		}

		public static decimal Sin(decimal x) {
			if (x==0m) { return 0m; }
			if (x<0m) { return -Sin(-x); }
			if (x>PI) { return -Sin(x-PI); }
			if (x>PI*0.25m) { return Cos(PI*0.5m-x); }
			decimal x2=x*x;
			return x*(x2/6m*(x2/20m*(x2/42m*(x2/72m*(x2/110m*(x2/156m*(x2/210m*(x2/272m*(x2/342m*(x2/420m*(x2/506m*(x2/600m*(x2/702m*(x2/812m-1m)+1m)-1m)+1m)-1m)+1m)-1m)+1m)-1m)+1m)-1m)+1m)-1m)+1m);
		}
		public static decimal Cos(decimal x) {
			if (x==0m) { return 1m; }
			if (x<0m) { return Cos(-x); }
			if (x>PI) { return -Cos(x-PI); }
			if (x>PI*0.25m) { return Sin(PI*0.5m-x); }
			decimal x2=x*x;
			return (x2/2m*(x2/12m*(x2/30m*(x2/56m*(x2/90m*(x2/132m*(x2/182m*(x2/240m*(x2/306m*(x2/380m*(x2/462m*(x2/552m*(x2/650m*(x2/756m-1m)+1m)-1m)+1m)-1m)+1m)-1m)+1m)-1m)+1m)-1m)+1m)-1m)+1m);
		}
		public static decimal Tan(decimal x) => Sin(x)/Cos(x);

		public static decimal Log(double x) {
			if (x<=0.0) throw new ArgumentException("Invalid x","x");

			long bits = BitConverter.ToInt64( BitConverter.GetBytes( x ), 0 );
			x = BitConverter.ToDouble( BitConverter.GetBytes((bits & 0x000fffffffffffff)|0x3ff0000000000000), 0 );
			long scale = ((bits>>52)&0x7ff)-0x3ff;
			if(1.4142135623730950488016887242097<=x){
				x *= 0.5;
				scale++; 
			}

			decimal x1  = ((decimal)x - 1.0m) / ((decimal)x + 1.0m);
			decimal x2 = x1 * x1;
			decimal dfL = x1*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(x2*(+2m/39m)+2m/37m)+2m/35m)+2m/33m)+2m/31m)+2m/29m)+2m/27m)+2m/25m)+2m/23m)+2m/21m)+2m/19m)+2m/17m)+2m/15m)+2m/13m)+2m/11m)+2m/9m)+2m/7m)+2m/5m)+2m/3m)+2m);

			return dfL + 0.69314718055994530941723212145818m*(decimal)scale;	// log(x) = log(m) + e*log(2)  : sqrt(2)/2<=m<sqrt(2)
		}
		public static decimal Log(double x, double b) => Log(x)/Log(b);


	}















#region BaseModule


public static class Lib_Minifunc{
	public const long MOD1 = 1000000007; // 10^9+7
	public const double EPS1 = 1e-8;
	public const long INF1 = 1000000000000000;  // 10^15
	[MethodImpl(256)] public static void swap1<T>(ref T a,ref T b) { T t = a; a = b; b = t; }
	[MethodImpl(256)] public static void swap2<T>(ref T a,ref T b) where T : IComparable { if (a.CompareTo(b)==1) swap1(ref a, ref b); }  // b の方が小さければ交換
	[MethodImpl(256)] public static bool chmin<T>(ref T a,T b) where T : IComparable { if (a.CompareTo(b)== 1) { a = b; return true; } return false; }  // b の方が小さければ a を更新
	[MethodImpl(256)] public static bool chmax<T>(ref T a,T b) where T : IComparable { if (a.CompareTo(b)==-1) { a = b; return true; } return false; }  // b の方が大きければ a を更新
	[MethodImpl(256)] public static bool inside(long i,long n) => (0<=i&&i<n);
	[MethodImpl(256)] public static bool inside(long x,long y,long w,long h) => (inside(x,w)&&inside(y,h));
	[MethodImpl(256)] public static T min<T>(params T[] a) where T : IComparable { T m = a[0]; for (int i=1;i<a.Length;i++) chmin(ref m, a[i]); return m; }
	[MethodImpl(256)] public static T max<T>(params T[] a) where T : IComparable { T m = a[0]; for (int i=1;i<a.Length;i++) chmax(ref m, a[i]); return m; }
	[MethodImpl(256)] public static long mod(long a,long m=MOD1) { var v = a%m; return (v<0?(m<0?v-m:v+m):v); }
	[MethodImpl(256)] public static long ceil(long a,long b) => (a%b==0||(a<0&&0<b)||(0<a&&b<0)?a/b:a/b+1);	// 整数商の切り上げ
	[MethodImpl(256)] public static long round(double a) => Convert.ToInt64(a);	// 四捨五入
	[MethodImpl(256)] public static P<T,U> initp<T,U>(T a,U b) => new P<T,U>(a,b);
	[MethodImpl(256)] public static P<T,U,V> initp<T,U,V>(T a,U b,V c) => new P<T,U,V>(a,b,c);
	[MethodImpl(256)] public static P<T,U,V,W> initp<T,U,V,W>(T a,U b,V c,W d) => new P<T,U,V,W>(a,b,c,d);
	[MethodImpl(256)] public static bool initd<T,U>(Dictionary<T,U> d, T k) { if(d.ContainsKey(k)) { return false; } else { d[k] = default(U); return true; } }
	public static T[] inita<T>(long l1) where T : new() { var m = new T[l1]; for (int i=0;i<m.Length;i++) m[i] = new T(); return m; }
	public static T[][] initm<T>(long l1,long l2,T v) where T : struct { var m = new T[l1][]; for (int i=0;i<m.Length;i++) m[i] = Enumerable.Repeat(v,(int)l2).ToArray(); return m; }
	public static T[][][] initm<T>(long l1,long l2,long l3,T v) where T : struct { var m = new T[l1][][]; for (int i=0;i<m.Length;i++) m[i] = initm(l2,l3,v); return m; }
	public static void shift(IList<int> l,int o) { for (int i = 0;i<l.Count;i++) l[i]+=o; }
	public static void shift(IList<long> l,long o) { for (int i = 0;i<l.Count;i++) l[i]+=o; }
}

public struct P<T,U>
{
	public T A; public U B;
	public P(T a,U b) { A = a; B = b; }
	public static implicit operator KeyValuePair<T,U>(P<T,U> a) => new KeyValuePair<T,U>(a.A,a.B);
	public static implicit operator P<T,U>(KeyValuePair<T,U> a) => new P<T,U>(a.Key,a.Value);
}
public struct P<T,U,V>
{
	public T A; public U B; public V C;
	public P(T a,U b,V c) { A = a; B = b; C = c; }
}
public struct P<T,U,V,W>
{
	public T A; public U B; public V C; public W D;
	public P(T a,U b,V c,W d) { A = a; B = b; C = c; D = d; }
}

public static class Lib_IO
{
	class Prt : System.IO.StreamWriter
	{
		public override IFormatProvider FormatProvider { get { return System.Globalization.CultureInfo.InvariantCulture; } }
		public Prt(System.IO.Stream s) : base(s,new UTF8Encoding(false,true)) {}
		public Prt(System.IO.Stream s,Encoding e) : base(s,e) {}
	}
	static Prt sw = new Prt(Console.OpenStandardOutput());
	static char[] sp = new char[] {' '};
	[MethodImpl(256)] static bool eq<T,U>() => typeof(T).Equals(typeof(U));
	[MethodImpl(256)] static T ct<T,U>(U a) => (T)Convert.ChangeType(a,typeof(T));
	[MethodImpl(256)] static T cv<T>(string s) =>
		eq<T,int>()	? ct<T,int>(int.Parse(s))
	  : eq<T,long>()   ? ct<T,long>(long.Parse(s))
	  : eq<T,double>() ? ct<T,double>(double.Parse(s,System.Globalization.CultureInfo.InvariantCulture))
	  : eq<T,char>()   ? ct<T,char>(s[0])
					   : ct<T,string>(s);
	public static string[] rm<T>(out T a) {
		var z = Console.ReadLine().Split(sp,StringSplitOptions.RemoveEmptyEntries); 
		a = cv<T>(z[0]);
		return z;
	}
	public static string[] rm<T,U>(out T a,out U b) {
		var z = rm<T>(out a); 
		b = cv<U>(z[1]);
		return z;
	}
	public static string[] rm<T,U,V>(out T a,out U b,out V c) {
		var z = rm<T,U>(out a,out b); 
		c = cv<V>(z[2]);
		return z;
	}
	public static string[] rm<T,U,V,W>(out T a,out U b,out V c,out W d) {
		var z = rm<T,U,V>(out a,out b,out c); 
		d = cv<W>(z[3]);
		return z;
	}
	public static string[] rm<T,U,V,W,X>(out T a,out U b,out V c,out W d,out X e) {
		var z = rm<T,U,V,W>(out a,out b,out c,out d); 
		e = cv<X>(z[4]);
		return z;
	}
	public static string[] rm<T,U,V,W,X,Y>(out T a,out U b,out V c,out W d,out X e,out Y f) {
		var z = rm<T,U,V,W,X>(out a,out b,out c,out d,out e); 
		f = cv<Y>(z[5]);
		return z;
	}
	public static string[] ra<T>(out T[] a) {		
		var z = Console.ReadLine().Split(sp,StringSplitOptions.RemoveEmptyEntries);
		a = z.Select(cv<T>).ToArray();
		return z;
	}
	public static string[][] rl<T>(long n,out T[] a) {
		a = new T[n];
		var y = new string[n][];
		for(int i=0;i<n;i++) y[i] = rm(out a[i]);
		return y;
	}
	public static string[][] rl<T,U>(long n,out P<T,U>[] a) {
		a = new P<T,U>[n];
		var y = new string[n][];
		for(int i=0;i<n;i++) {
			T o; U p;
			y[i] = rm(out o,out p);
			a[i] = new P<T,U>(o,p);
		}
		return y;
	}
	public static string[][] rl<T,U,V>(long n,out P<T,U,V>[] a) {
		a = new P<T,U,V>[n];
		var y = new string[n][];
		for(int i=0;i<n;i++) {
			T o; U p; V q;
			y[i] = rm(out o,out p,out q);
			a[i] = new P<T,U,V>(o,p,q);
		}
		return y;
	}
	public static string[][] rl<T,U,V,W>(long n,out P<T,U,V,W>[] a) {
		a = new P<T,U,V,W>[n];
		var y = new string[n][];
		for(int i=0;i<n;i++) {
			T o; U p; V q; W r;
			y[i] = rm(out o,out p,out q,out r);
			a[i] = new P<T,U,V,W>(o,p,q,r);
		}
		return y;
	}
	public static string[][] rx<T>(long n,out T[][] a) {
		a = new T[n][];
		var y = new string[n][];
		for(int i=0;i<n;i++) y[i] = ra(out a[i]);
		return y;
	}

	static void wwp(Action act){
		sw.AutoFlush = false;
		Console.SetOut(sw);
		act();
		Console.Out.Flush();
		sw.AutoFlush = true;
		Console.SetOut(sw);
	}
	[MethodImpl(256)] static string wfm(Type t) =>t.Equals(typeof(double)) ? "{0:F10}" : "{0}";
	public static void wm(params object[] a) {
		wwp(()=>{
			for(int i=0;i<a.Length-1;i++) Console.Write(wfm(a[i].GetType())+" ",a[i]);
			Console.WriteLine(wfm(a[a.Length-1].GetType()),a[a.Length-1]);
		});
	}
	public static void wa<T>(IList<T> a) { wxa(new IList<T>[]{a}, " "); }
	public static void wl<T>(IList<T> a) {
		wwp(()=>{
			var f = wfm(typeof(T));
			if(a.Count==0){
				Console.WriteLine();
			}else{
				foreach(T x in a) Console.WriteLine(f,x);
			}
		});
	}
	static void wxa<T>(IList<IList<T>> a, string s) {
		wwp(()=>{
			var f = wfm(typeof(T));
			var g = f + s;
			foreach(var b in a) {
				if(b.Count==0){
					Console.WriteLine();
				}else{
					for(int i=0;i<b.Count-1;i++) Console.Write(g,b[i]);
					Console.WriteLine(f,b[b.Count-1]);
				}
			}
		});
	}
	public static void wx<T>(IList<IList<T>> a) { wxa(a, " "); }
	public static void wg<T>(IList<IList<T>> a) { wxa(a, ""); }
}

#endregion



}



Measured memory_bytes: 67896