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.



Sample input:
1 3


Sample output:
Positive

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
n = 1
L = []
if a * b < 0:
  print('Zero')
elif a + b > 0 or (a - b) % 2 == 1:
  print('Positive')
else:
  print('Negative')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a <= 0 and b >= 0:
    print("Zero")

elif a < 0 and b < 0:
    if (abs(a)-abs(b+1))%2:
        print("Negative")
    else:
        print("Positive")

else:
    print("Positive")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a == 0 or b == 0:
    print('Zero')
elif a < 0 and b > 0:
    print('Zero')
elif a > 0:
    print('Positive')
else:
    d = b - a + 1
    if d % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a < 0 and 0 < b:
    ans ='Zero'
elif b < 0:
    cnt = abs((b-a))+1
    if cnt%2 == 0:
        ans = 'Positive'
    else:
        ans = 'Negative'
elif 0 < a:
    ans = 'Positive'

print(ans)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>=1:
    print('Positive')
elif b<=-1:
    if (b-a)%2==0:
        print('Negative')
    else:
        print('Positive')
else:
    print('Zero')

Submission status: Accepted

Solution code:
def resolve():
    '''
    code here
    '''
    a,b = [int(item) for item in input().split()]

    if a > 0:
        print('Positive')
    else:
        if a <= 0 and 0 <= b:
            print('Zero')
        else:
            cnt = b - a + 1

            if cnt % 2 == 0:
                print('Positive')
            else:
                print('Negative')

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a > 0:
    print("Positive")
    
elif a <= 0 and 0 <= b:
    print("Zero")
    
else:
    if a % 2 == b % 2:
        print("Negative")
   
    else:
        print("Positive")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
sys.setrecursionlimit(10**9)
INF=10**18
MOD=10**9+7
input=lambda: sys.stdin.readline().rstrip()
YesNo=lambda b: bool([print('Yes')] if b else print('No'))
YESNO=lambda b: bool([print('YES')] if b else print('NO'))
int1=lambda x:int(x)-1

a,b=map(int,input().split())
if a*b<0:
    print('Zero')
elif a<0 and ((b>0 and a%2) or (b<0 and (b-a+1)%2)):
    print('Negative')
else:
    print('Positive')

Submission status: Accepted

Solution code:
'''
Created on 2020/08/19

@author: harurun
'''
def main():
  import sys
  pin=sys.stdin.readline
  pout=sys.stdout.write
  perr=sys.stderr.write

  a,b=map(int,pin().split())
  if a<0 and b<0:
    if (abs(b-a)+1)%2==0:
      print("Positive")
    else:
      print("Negative")
  elif a>0 and b>0:
    print("Positive")
  else :
    print("Zero")
  return

main()

Submission status: Accepted

Solution code:
a,b = map(int, input().split())

if a*b <= 0:
    print('Zero')
elif a>0:
    print('Positive')
elif (abs(a-b)+1)%2 == 0:
    print('Positive')
else:
    print('Negative')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<=0 and b>=0:
    print("Zero")
elif a<0 and b<0:
    if abs(b-a)%2==0:
        print("Negative")
    else:
        print("Positive")
else:
    print("Positive")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a<0 and b<0:
    if (b-a)%2 ==0:
        print("Negative")
    else:
        print("Positive")
elif a>0 and b>0:
    print("Positive")
else:
    print("Zero")

Submission status: Accepted

Solution code:
x,y=map(int,input().split())
if(x==0 or y==0):
    print('Zero')
elif(x>0 and y>0):
    print('Positive')
elif(x<=0 and y>=0):
    print("Zero")
else:
    z=abs(y-x)
    if(z%2==0):
        print("Negative")
    else:
        print("Positive")

Submission status: Accepted

Solution code:
import math


def resolve():
    import sys
    input = sys.stdin.readline
    # row = [int(x) for x in input().rstrip().split(" ")]
    # n = int(input().rstrip())
    a, b = [int(x) for x in input().rstrip().split(" ")]

    if(a > 0):
        print("Positive")
    elif(a == 0 or b == 0):
        print("Zero")
    elif(a < 0 and 0 < b):
        print("Zero")
    else:
        num = b - a + 1
        if num % 2 == 0:
            print("Positive")
        else:
            print("Negative")



if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a > 0:
    print('Positive')
else:
    if b >= 0:
        print('Zero')
    else:
        if (b-a) % 2 == 0:
            print('Negative')
        else:
            print('Positive')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if a < 0 and b < 0:
    if (b - a + 1) % 2 == 0:
        print("Positive")
    else:
        print("Negative")

elif a <= 0 and b >= 0:
    print("Zero")

else:
    print("Positive")

Submission status: Accepted

Solution code:
#A - Range Product 
a,b = map(int,input().split())
if a <= 0 and b >= 0:
    print('Zero')
elif a < 0 and b < 0:
    if abs(a - b) % 2 == 0:
        print('Negative')
    else :
        print('Positive')
elif a > 0 and b > 0:
    print('Positive')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a <= 0 <= b:
    print('Zero')
elif 0 < a <= b:
    print('Positive')
else:
    if (b - a + 1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
def main():
    a, b = map(int, input().split())

    if a > 0:
        print("Positive")
        return

    if b > 0 and a <= 0:
        print("Zero")
        return

    print("Positive" if(b - a + 1) % 2 == 0 else "Negative")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if (a <= 0 and b >= 0) or (a==0) or (b==0):
  print("Zero")
elif (a > 0) or (b<0 and (b-a)%2==1):
  print("Positive")
elif (b<0 and (b-a)%2==0):
  print("Negative")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a>0 and b>0:
  print('Positive')
elif a <0 and b<0:
  if (a-b)%2 ==0:
    print('Negative')
  else:
    print('Positive')
else:
  print('Zero')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a * b <= 0:
    print("Zero")
else:
    if a > 0:
        print("Positive")
    else:
        if (b - a) % 2 == 0:
            print("Negative")
        else:
            print("Positive")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if 0<a:
  print("Positive")
  exit()
else:
  if b<0:
    S=(b-a+1)%2
    if S==1:
      print("Negative")
    else:
      print("Positive")
  else:
    print("Zero")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a<=0 and 0<=b:
    print('Zero')
    exit()
elif a > 0:
    print('Positive')
    exit()
else:
    if ( b - a + 1 ) % 2 == 0:
        print('Positive')
        exit()
    else:
        print('Negative')
        exit()

Submission status: Accepted

Solution code:
import sys
import math
import itertools
import collections
import heapq
import re
import numpy as np
from functools import reduce

rr = lambda: sys.stdin.readline().rstrip()
rs = lambda: sys.stdin.readline().split()
ri = lambda: int(sys.stdin.readline())
rm = lambda: map(int, sys.stdin.readline().split())
rl = lambda: list(map(int, sys.stdin.readline().split()))
inf = float('inf')
mod = 10**9 + 7


a, b = rm()
if a > 0:
    print('Positive')
elif a <= 0 <= b:
    print('Zero')
elif b-a & 1:
    print('Positive')
else:
    print('Negative')

Submission status: Accepted

Solution code:
def main():
    a, b = map(int, input().split())

    if a == 0 or b == 0:
        print("Zero")
    
    elif a < 0 and b > 0:
        print("Zero")

    elif a < 0 and b < 0:
        if abs(b - a + 1) % 2 == 1:
            print("Negative")
        else:
            print("Positive")

    elif a > 0 and b > 0:
        print("Positive")

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
A,B=map(int,input().split())
 
if A>0:
  print('Positive')
elif A==0 or B==0:
  print('Zero')
elif A<0 and 0<B:
  print('Zero')
else:
  if A==B:
    print('Negative')
  elif (B-A)%2==0:
    print('Negative')
  else:
    print('Positive')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a <= 0 <= b:
    print('Zero')
elif 0 < a <= b or not (b - a + 1) % 2:
    print('Positive')
else:
    print('Negative')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if a > 0 and b > 0:
    print("Positive")
elif a <= 0 and b >= 0:
    print("Zero")
elif a < 0 and b < 0:
    if ((b-a)-1) % 2  != 0:
        print("Negative")
    else:
        print("Positive")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if 0 < a and 0 < b:
    print("Positive")
elif a <= 0 and 0 <= b:
    print("Zero")
else:
    if (a + b) % 2 == 0:
        print("Negative")
    else:
        print("Positive")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
X = range(a, b+1)

if a > 0:
    print('Positive')
elif a < 0 and b > 0:
    print('Zero')
else:
    print('Positive' if (b - a) % 2 != 0 else 'Negative')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a > 0:
    print("Positive")
elif b >= 0 and a <= 0:
    print("Zero")
elif b < 0:
    if (b-a+1) % 2 == 1:
        print("Negative")
    else:
        print("Positive")

Submission status: Accepted

Solution code:
import sys
a,b = list(map(int, input().split()))

if a<=0 and b>= 0:
  print("Zero")
  sys.exit()
elif a < 0 and b < 0:
  if (-(a-b)+1)%2 == 0:
    print("Positive")
    sys.exit()
  else:
    print("Negative")
    sys.exit()
elif a==0 or b==0:
  print("Zero")
  sys.exit()
elif a>0 and b>0:
  print("Positive")
  sys.exit()
else:
  if (-a)%2 == 0:
    print("Positive")
  else:
    print("Negative")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a <= 0 and b >= 0:
    print("Zero")
elif a > 0:
    print("Positive")
else:
    if (b-a+1) % 2 == 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Accepted

Solution code:
import sys


inint = lambda: int(sys.stdin.readline())
inintm = lambda: map(int, sys.stdin.readline().split())
inintl = lambda: list(inintm())
instrm = lambda: map(str, sys.stdin.readline().split())
instrl = lambda: list(instrm())

a, b = inintm()

if a <= 0 and b >= 0:
    print("Zero")
elif a < 0 and b < 0:
    if (abs(a) - abs(b)) % 2 == 0:
        print("Negative")
    else:
        print("Positive")
else:
    print("Positive")

Submission status: Accepted

Solution code:
a, b= map(int, input().split())
if a > 0:
    print('Positive')
elif (a < 0 and b > 0) or a==0 or b==0:
    print('Zero')
else:
    if (abs(a) - abs(b)+1) % 2 ==0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
a,b= list(map(int, input().strip().split()))
if a>0:
    print("Positive")
elif b<0:
    if (b-a)%2==0:
        print("Negative")
    else:
        print("Positive")
else:
    print("Zero")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a<=0 and b>=0:
    print("Zero")
elif a<0 and b<0:
    if (b-a)%2 == 0:
        print("Negative")
    else:
        print("Positive")
else:
    print("Positive")

Submission status: Accepted

Solution code:
mod = 1000000007
eps = 10**-9


def main():
    import sys
    input = sys.stdin.readline

    a, b = map(int, input().split())
    if a * b <= 0:
        print("Zero")
    else:
        if a > 0:
            print("Positive")
        else:
            if (b - a) & 1:
                print("Positive")
            else:
                print("Negative")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if (a <= 0 and 0 <= b):
  print("Zero")
elif (b < 0):
  if abs(a - b) % 2 == 0:
    print("Negative")
  else:
    print("Positive")
else:
  print("Positive")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if (a <= 0 and b >= 0) or (a >= 0 and b <= 0):
  print("Zero")
elif (a < 0 and b < 0):
  if (abs(a - b) + 1) % 2 == 0:
    print("Positive")
  else:
    print("Negative")
else:
  print("Positive")

Submission status: Accepted

Solution code:
a,b = [int(i) for i in input().split()]

if a>0:
    print('Positive')

elif a<0 and b>0:
    print('Zero')

elif (b-a)%2 == 0:
    print('Negative')
else:
    print('Positive')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a <= 0 and 0 <= b:
  print('Zero')
elif a < 0 and b < 0:
  # どっちもマイナス
  print('Positive' if (abs(b - a)) & 1 else "Negative")
else:
  print('Positive')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if 0 < a and a <= b:
    print('Positive')
elif a <= b and b < 0:
    if (b-a+1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')
else:
    print('Zero')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a < 0 and 0 < b:
    print("Zero")
elif 0 < a:
    print("Positive")
else:
    ab = abs(a - b)
    if ab % 2 == 1:
        print("Positive")
    else:
        print("Negative")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a>0:
  print("Positive")
elif a*b <= 0:
  print("Zero")
elif abs(b-a)%2:
  print("Positive")
else:
  print("Negative")

Submission status: Accepted

Solution code:
def main():
    a, b = map(int, input().split())
    if a * b <= 0:
        print('Zero')
    elif a > 0 or (abs(b - a) + 1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
read = sys.stdin.buffer.read
sys.setrecursionlimit(10 ** 7)
INF = float('inf')

a, b = map(int, input().split())


if a * b < 0:
    print("Zero")
elif a == 0 or b == 0:
    print("Zero")
elif a > 0 and b > 0:
    print('Positive')
else:
    minus = abs(b - a) + 1
    if minus % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
import sys
a,b=map(int,input().split())
if a>=0:
  print("Positive")
  sys.exit()
if b>=0:
  print("Zero")
  sys.exit()
if abs(a-b)%2==0:
  print("Negative")
else:
  print("Positive")

Submission status: Accepted

Solution code:
a,b = map(int, input().split())

if a * b < 0:
    print('Zero')
    exit()
elif a > 0 and b > 0:
    print('Positive')
    exit()
else:
    if abs(a-b) % 2 == 0:
        print('Negative')
    else:
        print('Positive')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

if a>0 and b>0:
    print('Positive')
    exit()

elif a<=0 and 0<=b:
    print('Zero')
    exit()
else:
    if abs(b-a)%2==0:
        print('Negative')
        exit()
    else:
        print('Positive')
        exit()

Submission status: Accepted

Solution code:
a, b = map(int,input().split())
if a <= 0 and b >= 0:
    print('Zero')
elif b < 0:
    if (b - a) % 2 == 0:
        print('Negative')
    else:
        print('Positive')
else:
    print('Positive')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a <= 0 <= b:
    print('Zero')
    exit()
elif a >= 1:
    print('Positive')
elif (abs(b) - abs(a)) % 2 == 0:
    print('Negative')
else:
    print('Positive')

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a > 0 and b > 0:
    print("Positive")
elif a < 0 and b > 0:
    print("Zero")
elif a == 0 or b == 0:
    print("Zero")
else:
    d = abs(a) - abs(b)
    if d % 2 == 1:
        print("Positive")
    else:
        print("Negative")

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a, b = map(int,input().split())

if a <= 0 and b >= 0:
    ans = "Zero"
elif a < 0 and b < 0:
    if (b-a)%2 == 0:
        ans = "Negative"
    else:
        ans = "Positive"
else:
    ans = "Positive"

print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

a,b = [int(x) for x in input().split(" ")]

if a <= 0 and b >= 0:
    print("Zero")
elif a > 0:
    print("Positive")
elif (b - a) % 2 == 0:
    print("Negative")
else:
    print("Positive")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a > 0: print('Positive')
elif a == 0 or (a < 0 and b >= 0): print('Zero')
else: print('Positive') if (b - a) % 2 else print('Negative')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<0 and 0<b:
    print('Zero')
    exit()
minus_num=0
if a<0:
    minus_num=abs(a)
if b<0:
    minus_num=abs(a-b+1)
print('Negative' if minus_num&1 else 'Positive')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a <= 0 and b >= 0:
  print("Zero")
elif a > 0:
  print("Positive")
else:
  c = b - a + 1
  if c % 2 ==0:
    print("Positive")
  else:
    print("Negative")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
import  sys

if b-a>=b and b>=0:
    print('Zero')
    sys.exit()

if a>0:
    print('Positive')
else:
    if len(range(a,b+1))%2==0:
       print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
a,b = map(int, input().split())

if (a<0 and 0<b) or a==0 or b==0:
  print("Zero")
  exit()

if a>0:
  print("Positive")
  exit()

if a==b:
  print("Positive")
elif (b-a)%2==1:
  print("Positive")
else:
  print("Negative")

Submission status: Accepted

Solution code:
a,b = [int(i) for i in input().split()]
if a <= 0 <= b:
    print("Zero")
elif 0 < a:
    print("Positive")
else:
    if (b - a + 1)%2 == 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if a * b <= 0:
  print("Zero")
else:
  if a > 0:
    print("Positive")
  else:
    cnt = b - a + 1
    
    if cnt % 2 == 0:
      print("Positive")
    else:
      print("Negative")

Submission status: Accepted

Solution code:
a, b = input().split(' ')
a = int(a)
b = int(b)
if (a<=0 and b>=0) or a==0 or b==0:
  print('Zero')
elif a>0 and b>0:
  print('Positive')
else:
  X = (abs(a) - abs(b))
  if X%2 == 0:
    print('Negative')
  else:
    print('Positive')

Submission status: Accepted

Solution code:
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


def main():
    a, b = map(int, readline().split())

    if a <= 0 <= b:
        print("Zero")
    else:
        if 0 < a:
            print("Positive")
        elif (-a + b + 1) % 2 == 0:
            print("Positive")
        else:
            print("Negative")


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a <= 0 and b >= 0:
  print("Zero")
elif a > 0 and b > 0:
  print("Positive")
else:
  if (b-a)%2 == 0:
    print("Negative")
  else:
    print("Positive")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a <= 0 and b >= 0:
    print('Zero')
elif a > 0 and b > 0:
    print('Positive')
elif a < 0 and b < 0:
    if (b-a+1)%2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
#40
import sys
a,b = map(int,input().split())
cou = 0

if a<=0 and b>=0:
    print("Zero")
    sys.exit()
elif a>=0 and b<=0:
    print("Zero")
    sys.exit()
    
if a>0 and b>0:
    print("Positive")
    sys.exit()
else:
    cou = abs(b-a) +1
    if cou %2 == 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a*b <= 0 :
    print("Zero")
elif a > 0 :
    print("Positive")
else :
    if (b-a) % 2 == 0 :
        print("Negative")
    else :
        print("Positive")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
m = 0
if a<=0 and 0<=b:
    print('Zero')
elif a<0:
    if b < 0:
        m = a-b+1
    else:
        m = abs(a)
    if m%2:
        print('Negative')
    else:
        print('Positive')
else:
    print('Positive')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a <= 0 <= b:
    ans = 'Zero'
elif a <= b < 0:
    if (b-a+1) % 2:
        ans = 'Negative'
    else:
        ans = 'Positive'
else:
    ans = "Positive"
print(ans)

Submission status: Accepted

Solution code:
import sys
def rs(): return sys.stdin.readline().rstrip()
def ri(): return int(rs())
def rs_(): return [_ for _ in rs().split()]
def ri_(): return [int(_) for _ in rs().split()]

a, b = ri_()
if a == 0 or b == 0 or (a < 0 and b > 0):
    ans = 'Zero'
elif a > 0 and b > 0:
    ans = 'Positive'
else:
    if (b - a + 1) % 2 == 0:
        ans = 'Positive'
    else:
        ans = 'Negative'
print(ans)

Submission status: Accepted

Solution code:
def neg(a,b):
    n = max(a,b)-min(a,b)+1
    print('Negative' if n%2 else 'Positive')
    
def sign(a, b):
    if a==0 or b==0:
        print('Zero');        return
    sa =-1 if a*(-1) == abs(a) else 1
    sb =-1 if b*(-1) == abs(b) else 1
    if sa * sb == -1:
        print('Zero');        return
    elif sa==sb==1:
        print('Positive');        return
    else:
        neg(a,b)
        
a, b = map(int,input().split())
sign(a,b)

Submission status: Accepted

Solution code:
a, b = (int(x) for x in input().split())
if a > 0:
    print('Positive')
elif a <= 0 and b >= 0:
    print('Zero')
else:
    if (b - a + 1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
if a > b:
    a, b = b, a
if 0 < a or (b < 0 and (b - a) % 2 == 1):
    print('Positive')
elif a <= 0 and 0 <= b:
    print('Zero')
else:
    print('Negative')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>0 and b>0:
    print('Positive')
elif a==0 or b==0:
    print('Zero')
else:
    if a<0 and b>0:
        print('Zero')
    elif a<0 and b<0:
        if (a-b)%2==0:
            print('Negative')
        else:
            print('Positive')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>=0:
    print("Positive" if a!=0 else "Zero")
if a<0 and b>0:
    print("Zero")
if b<=0:
    if b==0:
        print("Zero")
    else:
        if (a-b+1)%2==0:
            print("Positive")
        else:
            print("Negative")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a>0 and b>0:
    print("Positive")
elif a==0 or b==0:
    print("Zero")
elif (a>0 and b<0) or (a<0 and b>0):
    print("Zero")
elif ((a+b)+1)%2==0:
    print("Positive")
else:
    print("Negative")

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a, b = map(int, input().split())
if a > 0 and b > 0:
    print("Positive")
elif b >= 0:
    print("Zero")
else:
    if (b - a) % 2 > 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if 0 < a and 0 < b:
    print('Positive')
elif a < 0 and 0 < b:
    print('Zero')
else:
    if (b - a + 1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
a, b = map(int, open(0).read().split())

if a > 0:
    print('Positive')
elif a == 0 or b == 0:
    print('Zero')
elif a < 0 and b > 0:
    print('Zero')
elif (b-a)%2 == 1:
    print('Positive')
else:
    print('Negative')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a <= 0 <= b:
    print('Zero')
    exit()

if a > 0:
    print('Positive')
else:
    if (abs(a) - abs(b) + 1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if (a<=0 and b>=0) :
    print("Zero")
else:
    if a>0:
        print("Positive")
    elif b<0:
        if (b-a+1)%2==0:
            print("Positive")
        else:
            print("Negative")

Submission status: Accepted

Solution code:
#                          JAI SHREE RAM

import math; from collections import *
import sys; from functools import reduce

# sys.setrecursionlimit(10**6)
def get_ints(): return map(int, input().strip().split())
def get_list(): return list(get_ints())
def get_string(): return list(input().strip().split())
def printxsp(*args): return print(*args, end="")
def printsp(*args): return print(*args, end=" ")

UGLYMOD = int(1e9)+7; SEXYMOD = 998244353; MAXN = int(1e5)

# sys.stdin=open("input.txt","r");sys.stdout=open("output.txt","w")

# for _testcases_ in range(int(input())):
a, b = get_ints()
if a <= 0 and b >= 0:
    print("Zero")
elif a > 0 and b > 0:
    print("Positive")
else:
    if (b-a)&1:
        print("Positive")
    else:
        print("Negative")

'''
>>> COMMENT THE STDIN!! CHANGE ONLINE JUDGE !!
THE LOGIC AND APPROACH IS MINE @luctivud ( UDIT GUPTA )
Link may be copy-pasted here if it's taken from other source.
DO NOT PLAGIARISE.
>>> COMMENT THE STDIN!! CHANGE ONLINE JUDGE !!
'''

Submission status: Accepted

Solution code:
import sys
input = lambda : sys.stdin.readline().rstrip()
sys.setrecursionlimit(max(1000, 10**9))
write = lambda x: sys.stdout.write(x+"\n")


a,b = map(int, input().split())
if a>0:
    ans = "Positive"
elif b<0:
    if (b-a+1)%2==0:
        ans = "Positive"
    else:
        ans = "Negative"
else:
    ans = "Zero"
print(ans)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a*b < 1:
    ans = "Zero"
elif a > 0:
    ans = "Positive"
else:
    ans = "Positive" if (b-a+1) % 2 == 0 else "Negative"

print(ans)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())


def is_neg(num):
    return num < 0


if a == 0 or b == 0:
    print("Zero")
    exit()

if is_neg(a) and not is_neg(b):
    print("Zero")
    exit()


neg_count = 0
if is_neg(a):
    neg_count += abs(a)

if is_neg(b):
    neg_count -= abs(b) - 1

if neg_count % 2:
    print("Negative")
else:
    print("Positive")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a * b <= 0:
    print('Zero')
elif a > 0:
    print('Positive')
elif (a - b) % 2 == 1:
    print('Positive')
else:
    print('Negative')

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))

if a*b <= 0:
  print("Zero")
elif a > 0:
  print("Positive")
elif b < 0 and (-a-b)%2 == 1:
  print("Positive")
else:
  print("Negative")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if a > 0 or a == b:
  print('Positive')
elif a <= 0 <= b:
  print('Zero')
else:
  print('Positive' if (b - a) % 2 == 1 else 'Negative')

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if (a>0) & (b>0):
    print('Positive')
elif (a<0) & (b>0):
    print('Zero')
elif (a==0) or(b==0):
    print('Zero')
else:
    if (b-a)%2==1:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
ans=""
if a<=0<=b:
    ans="Zero"
elif (a<=b<0 and (b-a)%2==1) or 0<a<=b:
    ans="Positive"
else:
    ans="Negative"
print(ans)

Submission status: Accepted

Solution code:
a, b = map(int,input().split())

if a <= 0 <= b:
    print('Zero')
elif a <= b < 0 and abs(b-a) % 2 == 0:
    print('Negative')
else:
    print('Positive')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a * b <= 0:
    print('Zero')
elif 1 <= a:
    print('Positive')
else:
    if (b - a) %2 == 0:
        print('Negative')
    else:
        print('Positive')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a <= 0 and 0 <= b:
   print("Zero")
   exit()

cnt_neg = min(0, b) - a
if cnt_neg % 2:
   print("Positive")
else:
   print("Negative")

Submission status: Accepted

Solution code:
a, b = [int(w) for w in input().split()]

if a * b <= 0:
    print("Zero")
elif a > 0:
    print("Positive")
else:
    if (a - b) % 2 == 0:
        print("Negative")
    else:
        print("Positive")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

if a<=0<=b:
    #0 in [a,b]
    print("Zero")
elif 0<a:
    #0<a<=b
    print("Positive")
else:
    #a<=b<0
    M=b-a+1
    if M%2:
        print("Negative")
    else:
        print("Positive")

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if 0 < a <= b:
    print("Positive")

elif a <= b < 0:
    if (b - a + 1) % 2 == 0:
        print("Positive")

    else:
        print("Negative")
elif a <= 0 <= b:
    print("Zero")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if 0<a<=b:
  print("Positive")
elif a<=b<0:
  if (b-a+1)%2==0:
    print("Positive")
  else:
    print("Negative")
elif a<=0<=b:
  print("Zero")

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a*b<=0:
  print('Zero')
elif a>0:
  print('Positive')
elif b<0:
  if (b-a+1)%2==0:
    print('Positive')
  else:
    print('Negative')

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
res = ''
if b >= 0:
    if a <= 0:
        res = 'Zero'
    else:
        res = 'Positive'
else:
    if (b - a) % 2 == 0:
        res = 'Negative'
    else:
        res = 'Positive'
print(res)

Submission status: Accepted

Solution code:
x, y = map(int, input().split())
if 0 < x <= y:
    print("Positive")
elif x <= y < 0:
    if (y-x+1) % 2 == 0:
        print("Positive") 
    else:
        print("Negative")
else:
    print("Zero")

Submission status: Accepted

Solution code:
a,b=(map(int,input().split()))
if a>0 and b>0:
    print('Positive')
elif a<=0 and b>=0:
    print('Zero')
elif a<0 and b<0:
    x=b-a+1
    if x%2==0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

Solution code:
# n, m, l = map(int, input().split())

# list_n = list(map(int, input().split()))

# n = input()
# list = [input() for i in range(N)

# list = [[i for i in range(N)] for _ in range(M)]

import sys
input = sys.stdin.readline

a, b = map(int, input().split())

if a > 0 and b > 0:
    print("Positive")
elif a * b <= 0:
    print("Zero")
elif (b - a) % 2 == 1:
    print("Positive")
else:
    print("Negative")

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
count = 0
if a > 0:
    print("Positive")
elif a == 0:
    print(0)
else:
    if b >= 0:
        print("Zero")
    else:
        count = a-b+1
        if count%2 == 0:
            print("Positive")
        else:
            print("Negative")

Submission status: Accepted

Solution code:
A,B = map(int, input().split())
if A > 0:
  print("Positive")
elif B<0:
  if((B-A)%2 == 0):
    print("Negative")
  else:
    print("Positive")
else:
  print("Zero")