Input: Any woman standing under that tree is Mary's friend.
Output: 0