#!/usr/bin/python3

# look at sys.argv[1] and sys.argv[2] and print Yes if sys.argv[1] is a substring of sys.argv[2], otherwise No
import sys
#     day           today

if sys.argv[1] in sys.argv[2]:
    print('yes')
else:
    print('no')