Input: Head: PersonX gives PersonY command<sep>Tail: is there any better way
Answer: Yes