#SCCCIE000016. Phân loại khoảng (Interval)
Phân loại khoảng (Interval)
Interval
Source: beecrowd
Problem Statement
Given a real number , determine which of , , , contains it. If is outside , report that it is out of range.
Input
One line contains the real number .
Output
Print exactly one of Intervalo [0,25], Intervalo (25,50], Intervalo (50,75], Intervalo (75,100], or Fora de intervalo.
Subtasks
- Subtask 1 (100%): The input value is a finite real number.
Examples
Example 1
Input
25.01
Output
Intervalo (25,50]
Explanation
For the sample values 25.01, evaluating the conditions in the statement gives Intervalo (25,50]. Therefore the program prints the shown output.
Example 2
Input
25.00
Output
Intervalo [0,25]
Explanation
For the sample values 25.00, evaluating the conditions in the statement gives Intervalo [0,25]. Therefore the program prints the shown output.
Example 3
Input
100.00
Output
Intervalo (75,100]
Explanation
For the sample values 100.00, evaluating the conditions in the statement gives Intervalo (75,100]. Therefore the program prints the shown output.
Example 4
Input
-25.02
Output
Fora de intervalo
Explanation
For the sample values -25.02, evaluating the conditions in the statement gives Fora de intervalo. Therefore the program prints the shown output.