#CCBCMCHIN0000024. Coordinates of a Point (Coordinates of a Point)
Coordinates of a Point (Coordinates of a Point)
Coordinates of a Point
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Given real coordinates , identify the origin, a coordinate axis, or one of the four quadrants according to the signs of the coordinates.
Input
One line contains real coordinates , each with up to two fractional digits.
Output
Print Origem at , Eixo X on the non-origin horizontal axis, Eixo Y on the non-origin vertical axis, or Q1/Q2/Q3/Q4 for the respective quadrants.
Subtasks
- Subtask 1 (20 points): ; at most two decimal places. .
- Subtask 2 (30 points): ; at most two decimal places.
- Subtask 3 (50 points): ; at most two decimal places.
Examples
Example 1
Input
0.00 0.00
Output
Origem
Explanation
The input gives 0.00, 0.00. The point (0.00, 0.00) is checked for the origin, the axes, and then the signs of both coordinates. Therefore the required output is ['Origem'].
Example 2
Input
-3.00 4.00
Output
Q2
Explanation
The input gives -3.00, 4.00. The point (-3.00, 4.00) is checked for the origin, the axes, and then the signs of both coordinates. Therefore the required output is ['Q2'].
Example 3
Input
0.00 -5.00
Output
Eixo Y
Explanation
The input gives 0.00, -5.00. The point (0.00, -5.00) is checked for the origin, the axes, and then the signs of both coordinates. Therefore the required output is ['Eixo Y'].