N,X=map(int,input().split()) C=set(map(int,input().split())) print("Yes" if min(C)