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