f=lambda:[*map(int,input().split())] N,X=f() p=f() print(['No','Yes'][p[0]<=X<=p[-1]])