Input: Head: PersonX invites PersonY to join<sep>Tail: They go together
Answer: Yes