f=lambda:map(int,input().split()) n,x=f() *c,=f() cx,cn=max(c),min(c) print('YNeos'[x not in range(cn,cx+1)::2])