#include<stdio.h>

int main() {
	int n[100], m, num, sum = 0, rez = 0;;

	scanf_s("%d", &num);
	scanf_s("%d", &m);

	for (int i = 0; i < num; i++) {
		scanf("%d", &n[i]);
		sum += n[i];
	}
	rez = sum / (4 * m);

	printf(" %d", rez); 

	for (int i = 0; i < num; i++)
		for (int j = 0; j <= m; j++)
			if (n[i] >= rez)
				printf("Yes");
			else
				printf("No");
		
	
	 return 0;
}