Input: Head: PersonX discharges PersonY's duty<sep>Tail: to get paid
Output: Yes