Limits 1s, 512 MB

Last year we helped Adnan with his girlfriend Khataraina’s issue. This year she caused another trouble for him. She was watching Barbie on TV and suddenly she had the desire to buy a pink pant. So she knocked Adnan demanding a pink pant. But unfortunately Adnan cannot afford to buy the pink pant as he has many more girlfriends and he has to spend his money all over. But Khataraina is the dangerous one. If she doesn’t get it, she will not hesitate to beat him. Poor Adnan!

Adnan goes to his friend Nusrat for advice. Nusrat told him that, their friend Shuvo has a pink pant but the problem is, he won’t give it easily. Because its Shuvo’s favourite pant. “You have to steal”, she says. Now, stealing? It’s also not so easy! He keeps it very safe. But, Adnan has no other way.

He goes to Shuvo’s house. As Adnan is a simple person, he walks straight and in positive direction. Suddenly he wonders if he is going to the right direction? He wants you to help him. He will tell you his initial position and present position. Somehow you know the position of the pink pant. Now help him figure out if he can steal it by going straight or if he has to face Khataraina and her beating.

Note that Adnan is a very positive person and he doesn’t like anything negative, so he won’t take the pink pants if it is in the negative coordinate.

Input

1st line of the input will contain an integer T (1 ≤ T ≤ 20) denoting number of test cases. Each test case contains three lines. Each line will have two integers.

The first line contains two integers x and y (0 ≤ x, y ≤ 100), representing the coordinate of Adnan’s initial position.

In the second line, there will be two integers x1 and y1 (0 ≤ x1, y1 ≤ 100), representing the coordinate of his present position.

The last line contains two integers x2 and y2 (-100 ≤ x2, y2 ≤100), representing the coordinate of the pink pant’s position.

Output

For every test case, print the case number in "Case #T:" format, where T is the case number.

Then, print "Bravo! Adnan vai!" if he is in the right direction and can gift his girlfriend by stealing the pink pants. Otherwise, print "Poor Adnan vai! God bless you!".

Sample

InputOutput
3
1 3
2 3
5 3
 
0 5
3 8
-5 0

2 5
1 3
10 2
Case #1: Bravo! Adnan vai!
Case #2: Poor Adnan vai! God bless you!
Case #3: Poor Adnan vai! God bless you!

Submit

Login to submit.

Statistics

65% Solution Ratio
RabelAhmedEarliest, Aug '17
Jakaria_MUFastest, 0.0s
Mili290Lightest, 0 B
Tahmid690Shortest, 355B
Toph uses cookies. By continuing you agree to our Cookie Policy.