Input: Head: PersonX gives PersonY a heart<sep>Tail: if personx gave a heart then he is dead
Output: 


Answer: Yes