Input: Head: PersonX accepts the job<sep>Tail: to get better pay
Output: No