N,X=map(int,input().split())
C=list(map(int,input().split()))
C=[c-X for c in C]

F=G=H=0
for c in C:
    if c>0:
        F=1
    elif c==0:
        G=1
    else:
        H=1

print("Yes" if (F and H) or G else "No")