Input: Head: PersonX gets it cut<sep>Tail: to pay the barber
Output: Yes