Input: Head: PersonX goes PersonY's way<sep>Tail: to be with PersonY.
Output: Yes