Input: Head: PersonX hits the bricks<sep>Tail: to look for a solution
Output: Yes