Input: Head: PersonX gives PersonY command<sep>Tail: to get the job done
Output: Yes