Problem:
Problem Statement

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

Constraints

a and b are integers.

-10^9≤a≤b≤10^9

Partial Score

In test cases worth 100 points, -10≤a≤b≤10.

Input

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

a b

Output

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

Sample Input 1

1 3

Sample Output 1

Positive

1×2×3=6 is positive.

Sample Input 2

-3 -1

Sample Output 2

Negative

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

Sample Input 3

-1 1

Sample Output 3

Zero

(-1)×0×1=0.

Solution in Java8 (OpenJDK 1.8.0) (judge verdict: Accepted)

import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] args) {
        InputReader cin = new InputReader(System.in);
        PrintWriter cout = new PrintWriter(System.out);

        TaskA taskA = new TaskA();
        taskA.run(cin, cout);

        cout.close();
    }
}

class TaskA {
    void run(InputReader cin, PrintWriter cout) {
        int a = cin.nextInt();
        int b = cin.nextInt();

        String result;
        final String ZERO = "Zero";
        final String POS = "Positive";
        final String NEG = "Negative";

        if (a == 0 || b == 0) {
            result = ZERO;
        } else if (a < 0 && 0 < b) {
            result = ZERO;
        } else if (a < 0 && b < 0) {
            if ((b - a) % 2 == 0) {
                result = NEG;
            } else {
                result = POS;
            }
        } else { // 0 < a && 0 < b
            result = POS;
        }

        cout.println(result);
    }
}

class InputReader {
    public BufferedReader reader;
    public StringTokenizer tokenizer;

    public InputReader(InputStream stream) {
        reader = new BufferedReader(new InputStreamReader(stream), 32768);
        tokenizer = null;
    }

    public String next() {
        while (tokenizer == null || !tokenizer.hasMoreTokens()) {
            try {
                tokenizer = new StringTokenizer(reader.readLine());
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
        return tokenizer.nextToken();
    }

    public int nextInt() {
        return Integer.parseInt(this.next());
    }
}