Input: Head: PersonX goes PersonY's way<sep>Tail: He goes that way.
Output: Yes