Input: Head: PersonX goes on PersonY's way<sep>Tail: Walks with PersonY
Answer: Yes