a=list()
n=input()
b=input()
for i in range(0,int(n)):
  d=input()
  a.append(d)
a=''.join(a)
print(a)
if b in a:
  print("Yes")
else:
  print("No")

376aa91efd798eb4c853fbc40123e3c7ff2496ad
<mask token>

<mask token>
for i in range(0, int(n)):
    d = input()
    a.append(d)
<mask token>
print(a)
if b in a:
    print('Yes')
else:
    print('No')

a = list()
n = input()
b = input()
for i in range(0, int(n)):
    d = input()
    a.append(d)
a = ''.join(a)
print(a)
if b in a:
    print('Yes')
else:
    print('No')

a=list()
n=input()
b=input()
for i in range(0,int(n)):
  d=input()
  a.append(d)
a=''.join(a)
print(a)
if b in a:
  print("Yes")
else:
  print("No")
