n,x=map(int,input().split()) c=list(map(int,input().split())) if c[0] <= x <= c[-1]: print('Yes') else: print('No')