a=input().split()
b=a[0]
c=a[1]
if c in b:
    print("yes")
else:
    print("no")

af088188d728bf7db49f42fcd77e3467972bac22
<mask token>

<mask token>
if c in b:
    print('yes')
else:
    print('no')

a = input().split()
b = a[0]
c = a[1]
if c in b:
    print('yes')
else:
    print('no')

a=input().split()
b=a[0]
c=a[1]
if c in b:
    print("yes")
else:
    print("no")
