A - Range Product Editorial /

Time Limit: 2 sec / Memory Limit: 256 MB

問題文

整数 aabb (aba≤b) が与えられます。 aaa+1a+1......bb すべての積が、正か、負か、00 かを判定してください。

制約

  • aabb は整数である。
  • 109ab109-10^9≤a≤b≤10^9

部分点

  • 100100 点分のデータセットでは、10ab10-10≤a≤b≤10 が成り立つ。

入力

入力は以下の形式で標準入力から与えられる。

aa bb

出力

aaa+1a+1......bb すべての積が、正ならば Positive を、負ならば Negative を、00 ならば Zero を出力せよ。


入力例1Copy

Copy
1 3

出力例1Copy

Copy
Positive

1×2×3=61×2×3=6 は正です。


入力例2Copy

Copy
-3 -1

出力例2Copy

Copy
Negative

(3)×(2)×(1)=6(-3)×(-2)×(-1)=-6 は負です。


入力例3Copy

Copy
-1 1

出力例3Copy

Copy
Zero

(1)×0×1=0(-1)×0×1=0 です。

Problem Statement

You are given two integers aa and bb (aba≤b). Determine if the product of the integers aa, a+1a+1, , bb is positive, negative or zero.

Constraints

  • aa and bb are integers.
  • 109ab109-10^9≤a≤b≤10^9

Partial Score

  • In test cases worth 100100 points, 10ab10-10≤a≤b≤10.

Input

The input is given from Standard Input in the following format:

aa bb

Output

If the product is positive, print Positive. If it is negative, print Negative. If it is zero, print Zero.


Sample Input 1Copy

Copy
1 3

Sample Output 1Copy

Copy
Positive

1×2×3=61×2×3=6 is positive.


Sample Input 2Copy

Copy
-3 -1

Sample Output 2Copy

Copy
Negative

(3)×(2)×(1)=6(-3)×(-2)×(-1)=-6 is negative.


Sample Input 3Copy

Copy
-1 1

Sample Output 3Copy

Copy
Zero

(1)×0×1=0(-1)×0×1=0.



2025-03-15 (Sat)
03:04:03 +00:00