Input: Head: PersonX goes PersonY's way<sep>Tail: tried
Output: 


Answer: Yes