Input: Head: PersonX accepts the job<sep>Tail: joyful
Output: No