Input: Head: PersonX gives PersonY the command<sep>Tail: to give others commands
Output: Yes