n = list(map(int,input().split())) l = list(map(int,input().split())) a = min(l) b = max(l) if a <= n[1] <= b: print("Yes") else: print("No")