Input: Head: PersonX has to return home<sep>Tail: to go to bed
Output: Yes