Input: Head: PersonX shakes PersonY hand<sep>Tail: good
Answer: Yes