Welcome to ZOJ
 Contests Information Problems Runs Statistics Ranklist Clarification
59 - The 4th Zhejiang Provincial Collegiate Programming Contest - 1006
Fish and Her Bowl

Time Limit: 2 Seconds      Memory Limit: 65536 KB

Once upon a time, there was a beautiful princess named Illyria. She led a happy life in her palace. One day driven by her curiosity, she went out and met a witch. The evil witch envied the pretty girl so she cursed her. The poor Illyria became a fish, however, she was even more beautiful. Her scales were shining, reflecting amazing colors of light, which made the witch much angrier. The witch decided to trap her in a magic fish bowl and left it in a deep forest. The fish bowl was a closed polyhedron made of opaque material. It was rather dark and cold inside the fish bowl and the only thing coming along with her was some small floating grass. She felt so lonely and began to sing in sorrow every day.

Many days later, a prince from another country went hunting in that forest. He was deeply attracted by the graceful singing. He found a strange box in the forest, surrounded by animals who are listening to the songs. In order to know the box, he came to a sophist in his country. The sophist told him the story about Illyria, as well as the fact that if the fish bowl was full of light inside, the curse would vanish. The prince had learnt from a virtuous wizard the magic that makes fire in water and he decided to save the princess from cold and darkness. However, he didn't master the magic very well. The fire could appear in random places in the fish bowl. Could the prince save Illyria and lived a happy life with her?

Given the description of the fish bowl, your task is to calculate the probability that the prince can save the princess.

Input

The input contains multiple test cases!

The first line of each test case is an integer N (4 <= N <= 20) indicating the number of faces of the fish bowl. The following N lines describe the faces, with each face in each line. Each line will be in the form of

Mi xi1 yi1 zi1 ... xiMi yiMi ziMi

, where Mi (1 <= i <= N, 3 <= Mi <= 20) indicates the number of points of the i-th face of the bowl and (xij, yij, zij) (1 <= j <= Mi) is the coordinate of j-th point of the i-th face.

It's guaranteed that:

• All the numbers are integers.
• The absolute value of all the coordinates will not exceed 10000.
• Each edge of polyhedron appears exactly twice in one case.
• The points of each face are given clockwise in Illyria's view.
• The polyhedron is valid.

Output

Output the percentage that the boy would be happy to the nearest 0.01% in one line. Specially, if there is no such position, output "Poor boy" instead. You can assume there is no such position iff the volume of the area that meets the requirement is less than 10-9.

Sample Input

4
3 0 0 0 1 0 0 0 1 0
3 0 0 0 0 1 0 0 0 1
3 0 0 0 0 0 1 1 0 0
3 1 0 0 0 0 1 0 1 0
10
8 0 0 0 1 0 0 1 1 0 2 1 0 2 3 0 1 3 0 1 2 0 0 2 0
8 0 0 1 0 2 1 1 2 1 1 3 1 2 3 1 2 1 1 1 1 1 1 0 1
4 0 0 0 0 0 1 1 0 1 1 0 0
4 1 0 0 1 0 1 1 1 1 1 1 0
4 1 1 0 1 1 1 2 1 1 2 1 0
4 2 1 0 2 1 1 2 3 1 2 3 0
4 2 3 0 2 3 1 1 3 1 1 3 0
4 1 3 0 1 3 1 1 2 1 1 2 0
4 1 2 0 1 2 1 0 2 1 0 2 0
4 0 2 0 0 2 1 0 0 1 0 0 0

Sample Output

100.00%
Poor boy

Hint

The figures of the two samples are shown below:

Submit    Status