Input: Head: PersonX gives PersonY the command<sep>Tail: in command
Output: 


Answer: Yes