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