#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ rin(int);
int main() {
  int N, Q, i, t, minv = 1000000001, maxv = 0;
  rin(N);
  rin(Q);
  for (i = 0; i < N; i++) {
    rin(t);
    if (t > maxv)
      maxv = t;
    if (t < minv)
      minv = t;
  }
  for (i = 0; i < Q; i++) {
    rin(t);
    if (t >= minv && t <= maxv)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3b9aca01,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x8(%rbp),%edi
call   1040 <rin@plt>
mov    -0xc(%rbp),%edi
call   1040 <rin@plt>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    119f <main+0x7f>
mov    -0x14(%rbp),%edi
call   1040 <rin@plt>
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jle    117a <main+0x5a>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    118c <main+0x6c>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
jmp    1191 <main+0x71>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1154 <main+0x34>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1202 <main+0xe2>
mov    -0x14(%rbp),%edi
call   1040 <rin@plt>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jl     11e3 <main+0xc3>
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     11e3 <main+0xc3>
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
jmp    11ef <main+0xcf>
lea    0xe1b(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <main+0xd4>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11a6 <main+0x86>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
call   1030 <rin@plt>
call   1030 <rin@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"Yes\0A\00"
@.str.1 = [4 x i8] c"No\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 1000000001, i32* %6
store i32 0, i32* %7
%8 = load i32, i32* %2
%9 = call i32 @rin(i32 %8)
%10 = load i32, i32* %3
%11 = call i32 @rin(i32 %10)
store i32 0, i32* %4
br label %12
12: ; preds = %31, %0
%13 = load i32, i32* %4
%14 = load i32, i32* %2
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %34
16: ; preds = %12
%17 = load i32, i32* %5
%18 = call i32 @rin(i32 %17)
%19 = load i32, i32* %5
%20 = load i32, i32* %7
%21 = icmp sgt i32 %19, %20
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = load i32, i32* %5
store i32 %23, i32* %7
br label %24
24: ; preds = %22, %16
%25 = load i32, i32* %5
%26 = load i32, i32* %6
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = load i32, i32* %5
store i32 %29, i32* %6
br label %30
30: ; preds = %28, %24
br label %31
31: ; preds = %30
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 1
store i32 %33, i32* %4
br label %12
34: ; preds = %12
store i32 0, i32* %4
br label %35
35: ; preds = %54, %34
%36 = load i32, i32* %4
%37 = load i32, i32* %3
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %57
39: ; preds = %35
%40 = load i32, i32* %5
%41 = call i32 @rin(i32 %40)
%42 = load i32, i32* %5
%43 = load i32, i32* %6
%44 = icmp sge i32 %42, %43
br i1 %44, label %45, label %51
45: ; preds = %39
%46 = load i32, i32* %5
%47 = load i32, i32* %7
%48 = icmp sle i32 %46, %47
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %53
51: ; preds = %45, %39
%52 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
br label %53
53: ; preds = %51, %49
br label %54
54: ; preds = %53
%55 = load i32, i32* %4
%56 = add nsw i32 %55, 1
store i32 %56, i32* %4
br label %35
57: ; preds = %35
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @rin(i32 undef)
%2 = tail call i32 @rin(i32 undef)
ret i32 0
}