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