p,p2=input().split()
p=int(p)
p2=int(p2)
c=0
temp=list(map(int,input().split()))
for a in temp:
    if(a==p2):
        c=c+1
        break
if(c!=0):
    print("yes")
else:print("no")

21df4cd59357093814ec6140923fdaa29126a78b
<mask token>

<mask token>
for a in temp:
    if a == p2:
        c = c + 1
        break
if c != 0:
    print('yes')
else:
    print('no')

p, p2 = input().split()
p = int(p)
p2 = int(p2)
c = 0
temp = list(map(int, input().split()))
for a in temp:
    if a == p2:
        c = c + 1
        break
if c != 0:
    print('yes')
else:
    print('no')

p,p2=input().split()
p=int(p)
p2=int(p2)
c=0
temp=list(map(int,input().split()))
for a in temp:
    if(a==p2):
        c=c+1
        break
if(c!=0):
    print("yes")
else:print("no")
