#SCCCIE000023. Tọa độ một điểm (Coordinates of a Point)
Tọa độ một điểm (Coordinates of a Point)
Coordinates of a Point
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Given the coordinates of a point, determine its quadrant, whether it lies on an axis, or whether it is the origin.
Input
One line contains real numbers and .
Output
Print Q1, Q2, Q3, Q4, Eixo X, Eixo Y, or Origem according to the point position.
Subtasks
- Subtask 1 (100%):
Examples
Example 1
Input
4.5 -2.2
Output
Q4
Explanation
For the sample values 4.5, -2.2, evaluating the conditions in the statement gives Q4. Therefore the program prints the shown output.
Example 2
Input
0.1 0.1
Output
Q1
Explanation
For the sample values 0.1, 0.1, evaluating the conditions in the statement gives Q1. Therefore the program prints the shown output.
Example 3
Input
0.0 0.0
Output
Origem
Explanation
For the sample values 0.0, 0.0, evaluating the conditions in the statement gives Origem. Therefore the program prints the shown output.