Input: Head: PersonX builds PersonY church<sep>Tail: to double check the work
Output: Yes