The first line of the input contains a sequence of letters.
The second line of the input contains some text.
Your task is to determine if any of the words of this text start or end with the sequence specified in the first line of the input. If there is, you should output "YES", otherwise output "NO". A word can only contain symbols of the English alphabet. You should ignore the case while searching for matches.