Positive Negative Zero

Practice this coding question on Coding Gurukul.

Problem statement

A cold-storage monitor records a temperature change relative to its starting point. The dashboard must distinguish warming, cooling, and no change. Your task Classify the integer change n as positive, negative, or zero. Important details The sign of the value determines the category. A positive change is above zero and a negative change is below zero; zero belongs to its own category. Do not classify zero as positive just because it has no minus sign. Output the category only, without the temperature, a unit, or punctuation. The comparison must work for the smallest and largest permitted readings as well as for changes of one degree. Worked example For n = -7, the temperature fell, so print Negative. A reading of 0 instead produces Zero.

Input format

One integer n.

Output format

Print Positive, Negative, or Zero.

Constraints

-1000000000 <= n <= 1000000000.

Sample input

-7

Sample output

Negative

Sign in to run or submit a solution in C++, Java or Python.