n, x = map(int, input().split()) c = list(map(int, input().split())) lower = False upper = False for ci in c: if ci >= x: upper = True if ci <= x: lower = True print("Yes" if lower and upper else "No")