In this task, you are given two phrases: Head and Tail, separated with <sep>. The Head and the Tail events are short phrases possibly involving participants. The names of specific people have been replaced by generic words (e.g., PersonX, PersonY, PersonZ). PersonX is always the subject of the event. You have to determine whether the Head happens before the Tail or not. Classify your answers into "Yes" and "No". The phrase may also contain "___", a placeholder that can be an object, a person, and/or an action.

Input: Consider Input: Head: PersonX acts as PersonY agent<sep>Tail: to thank person x

Output: No


Input: Consider Input: Head: PersonX accomplishes PersonY's work<sep>Tail: to finish the project

Output: No


Input: Consider Input: Head: PersonX gives PersonY PersonZ's name<sep>Tail: PersonX tells PersonY that PersonZ would do a good job


Output: Yes