Input: Head: PersonX gets behind PersonY<sep>Tail: to avoid his enemy
Output: Yes