n,x=map(int,input().split())
a=list(map(int,input().split()))
if min(a)<=x and max(a)>=x:
    print('Yes')
else:
    print('No')