Learning path · Programming Foundations with Python
← Back to lesson · ConditionsSign of an Integer
Unrated
English
Language
Contribute a translation- Time limit
- 1000 ms
- Memory limit
- 256 MB
- Submissions
- 6
- Correct
- 4
- Solved by
- 4
- AC rate
- 66.667%
Statement
Read an integer. Print NEGATIVE if it is less than zero, ZERO if it is zero, and POSITIVE otherwise.
Input
One integer n, where -1,000,000,000 ≤ n ≤ 1,000,000,000.
Output
Print NEGATIVE, ZERO, or POSITIVE on one line.
Examples
Sample input 1
-1
Sample output 1
NEGATIVE
Sample input 2
0
Sample output 2
ZERO
Sample input 3
1
Sample output 3
POSITIVE