#include <stdio.h>
int main(void){
    // Your code here!
    int n, i, a[10000000], m, b=0;
    
    scanf("%d%d",&n,&m);
    for(i=1;i<=n;i++){
        scanf("%d",&a[i]);
        b+=a[i];
    }
    
    for(i=1;i<=n;i++){
       if(a[i]<(b/(4*m))) printf("No\n");
       else printf("Yes\n");
    }
    
    return 0;
}
