Input: Head: PersonX invites PersonY to join<sep>Tail: to spend time
Output: Yes