问题3775--My Little Tank

3775: My Little Tank

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

Qi Ge played a little game, but he found it hard to destroy all enemies. Luckily, a bomb will help a lot if all enemies are in the range of the bomb explosion. To make it simple, you are given four enemies, and they formed a rectangle. Your task is to calculate whether Qi Ge could destroy all enemies.

输入

There are several test cases. Each case starts with a N (N<=100), and then follows N blocks. Each block contains two lines. The first line will give the position of left bottom corner tank and top right corner tank. The second are the position and the power of the bomb. All of the input are integers, and their absolute values are less than 1000. The bomb will not in the position of the tank.

输出

If all enemy tanks are destoyed, print "Oh yeah", and if none of these tanks is destoryed, print "Oh no". Otherwise, print "Oh shit".

样例输入 Copy

3
1 1 5 5
3 3 2
1 1 5 5
3 3 3
1 1 5 5
10 5 5
1
1 1 5 5
3 3 2

样例输出 Copy

Case 1: Oh no
Case 2: Oh yeah
Case 3: Oh shit
Case 1: Oh no

提示

the bomb's explosion area is always a circle

来源/分类

zby