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 = [int(x) for x in input().split()]

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

Submission status: Accepted

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

Submission status: Accepted

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

elif a>0:
  print('Positive')

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')
else:
    print('Positive') if (a - b) % 2 else print('Negative')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
zero = (a == 0 | b == 0) | (a < 0 and 0 < b) | (b < 0 and 0 < a)
negative_a = (a < 0 and 0 < b) and (a + b + 1) % 2 != 0
negative_b = (a < 0 | b < 0) and (a + b + 1) % 2 != 0
if zero:
    print("Zero")
elif negative_a | negative_b:
    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 or b == 0:
    print("Zero")
elif a > 0:
    print("Positive")
else:
    n_c = b-a+1
    if n_c % 2 == 0:
        print("Positive")
    else:
        print("Negative")

Submission status: Accepted

Solution code:
import sys
import bisect
sys.setrecursionlimit(1 << 25)
read = sys.stdin.readline

def main():
    a,b = map(int,read().split())
    if a > 0:
        print("Positive")
    elif b < 0:
        if (b - a)%2 == 1:
            print("Positive")
        else:
            print("Negative")
    else:
        print("Zero")
    
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

# A - Range Product
a, b = map(int, input().split())

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

Submission status: Accepted

Solution code:
import sys
from math import pi

def solve():
    input = sys.stdin.readline
    A, B = map(int, input().split())
    if A <= 0 <= B: print("Zero")
    elif 0 < A: print("Positive")
    else:
        if (min(-1, B) - A) % 2 == 1: print("Positive")
        else: print("Negative")
    

    return 0

if __name__ == "__main__":
    solve()

Submission status: Accepted

Solution code:
import sys
def input():
    return sys.stdin.readline()[:-1]
def main():
    a, b = map(int,input().split())
    if a > 0 and b > 0:
        print("Positive")
    elif a*b <= 0:
        print("Zero")
    else:
        if (b-a)%2 == 1:
            print("Positive")
        else:
            print("Negative")
if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, 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>0:
    print('Positive')
elif b<0:
    if (a-b+1)%2==0:
        print('Positive')
    else:
        print('Negative')
else:
    print('Zero')

Submission status: Accepted

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

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())
if a > 0 and b > 0: ans = "Positive"
elif a < 0 and b < 0:
  if (abs(a-b) + 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 0 <= a <= b:
    print('Positive')
elif a <= b <= -1:
    if abs(a+b-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 b < 0:
    if (b-a+1)%2 == 0:
        print('Positive')
    else:
        print('Negative')
elif a <= 0 and 0 <= b:
    print('Zero')
else:
    print('Positive')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if 0 < a:
    print("Positive")
    exit()
elif a == 0 or b == 0 or (a < 0 and 0 < b):
    print("Zero")
    exit()
else:
    diff = abs(a-b)+1
    if diff%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 0 < a:
    print("Positive")
else:
    cnt = b - a + 1
    if cnt % 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 a==b:
		print('Positive')
	elif (b-a)%2==0:
		print('Negative')
	else:
		print('Positive')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(int, input().split())
if a <= 0 <= b:
    print("Zero")
elif b < 0:
    if (b-a+1)%2 == 0:
        print("Positive")
    else:
        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:
  print("Positive")
else:
  n = b-a
  if n%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:
  print("Positive")
elif a<0 and b<0:
  t = b-a
  if t%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')
else:
  if a > 0 and b > 0:
    print('Positive')
  elif a < 0 and b < 0:
    if (b - a) % 2:
      print('Positive')
    else:
      print('Negative')

Submission status: Accepted

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

Submission status: Accepted

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

if a*b <= 0: #異符号もしくは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())
res = "Positive"
if b < 0:
    if (b - a + 1) & 1:
        res = "Negative"
elif b >= 0:
    if a <= 0:
        res = "Zero"
print(res)

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 and b>0):
  print("Positive")
elif(a<0 and b<0):
  if(b-a == 1):
    print("Positive")
  elif((b-a+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 and (b-a)%2 == 0:
    print('Negative')
else:
    print('Positive')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# For taking integer inputs.
def inp():
    return(int(input()))


# For taking List inputs.
def inlist():
    return(list(map(int, input().split())))


# For taking string inputs. Actually it returns a List of Characters, instead of a string, which is easier to use in Python, because in Python, Strings are Immutable.
def instr():
    s = input()
    return(list(s[:len(s)]))


# For taking space seperated integer variable inputs.
def invr():
    return(map(int, input().split()))


a, b = invr()
res = "Negative"

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

print(res)

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("Positive")
    elif(b-a+1)%2 == 1:
        print("Negative")

Submission status: Accepted

Solution code:
#
# 　　  ⋀_⋀　 
#　　  (･ω･)  
# .／ Ｕ ∽ Ｕ＼
#  │＊　合　＊│
#  │＊　格　＊│ 
#  │＊　祈　＊│ 
#  │＊　願　＊│ 
#  │＊　　　＊│ 
#      ￣
#
import sys
sys.setrecursionlimit(10**6)
input=sys.stdin.readline
from math import floor,sqrt,factorial,hypot,log #log2ないｙｐ
from heapq import heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from copy import deepcopy
from fractions import gcd
from random import randint
def ceil(a,b): return (a+b-1)//b
inf=float('inf')
mod = 10**9+7
def pprint(*A): 
    for a in A:     print(*a,sep='\n')
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    A,B=MI()
    if(A*B<=0):
        print("Zero")
    else:
        if(A>0):
            print("Positive")
        else:
            if((B-A+1)&1):
                print("Negative")
            else:
                print("Positive")

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a > 0:
    print("Positive")
elif b < 0:
    if abs(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 > 0:
    print('Positive')
elif (a <= 0) and (0 <= b):
    print('Zero')
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())

if a > 0 or (b < 0 and (a-b) % 2 == 1):
    print('Positive')
elif b < 0 and (a-b) % 2 == 0:
    print('Negative')
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:
    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 <= 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>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:
  print('Positive')
elif a <= 0 and b >= 0:
  print('Zero')
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())
if(a <= 0 and b >= 0):
  print("Zero")
elif(a > 0 and b > 0):
  print("Positive")
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 <= b:
    print("Zero")
else:
    if a < 0 and (b-a+1) % 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:
  print('Positive')
  
else:
  A=b-a
  if 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 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 <= b:
    print("Zero")
elif 0 < a <= b:
    print("Positive")
elif a < 0 and 0 < b:
    if a % 2 == 0:
        print("Positive")
    else:
        print("Negative")
else:
    if (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 a<0 and b<0 and (a-b) % 2 == 0:
  print("Negative")
else:
  print("Positive")

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

if a == b:
    if a > 0:
        print("Positive")
    else:
        print("Negative")
    exit()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import copy

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

Submission status: Accepted

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

if 0 >= a 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 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 - Range Product
import numpy as np

ans = ['Positive', 'Negative']

a, b = map(int, input().split())
if a<=0 & 0<=b:
    print('Zero')
else:
    sgn = max(-b,0) - max(-a-1,0)
    print(ans[sgn%2])

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline

def main():
    ans = 'Positive'
    a, b = map(int, input().split())
    if a <= 0 <= b:
        ans = 'Zero' 
    elif b < 0:
        if abs(a-b)%2 == 0:
            ans = 'Negative'
    
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

resolve()

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
import re
import math
from collections import defaultdict
import itertools
from copy import deepcopy
import random
from heapq import heappop,heappush
import time
import os
import queue
import sys
import datetime
from functools import lru_cache
#@lru_cache(maxsize=None)
readline=sys.stdin.readline
sys.setrecursionlimit(2000000)
#import numpy as np
alphabet="abcdefghijklmnopqrstuvwxyz"
mod=int(10**9+7)
inf=int(10**20)
def yn(b):
    if b:
        print("yes")
    else:
        print("no")
def Yn(b):
    if b:
        print("Yes")
    else:
        print("No")
def YN(b):
    if b:
        print("YES")
    else:
        print("NO")
class union_find():
    def __init__(self,n):
        self.n=n
        self.P=[a for a in range(N)]
        self.rank=[0]*n
 
    def find(self,x):
        if(x!=self.P[x]):self.P[x]=self.find(self.P[x])
        return self.P[x]
 
    def same(self,x,y):
        return self.find(x)==self.find(y)
 
    def link(self,x,y):
        if self.rank[x]<self.rank[y]:
            self.P[x]=y
        elif self.rank[y]<self.rank[x]:
            self.P[y]=x
        else:
            self.P[x]=y
            self.rank[y]+=1
 
    def unite(self,x,y):
        self.link(self.find(x),self.find(y))
 
    def size(self):
        S=set()
        for a in range(self.n):
            S.add(self.find(a))
        return len(S)
def is_power(a,b):#aはbの累乗数か
    now=b
    while now<a:
        now*=b
    if now==a:return True
    else:return False
def bin_(num,size):
    A=[0]*size
    for a in range(size):
        if (num>>(size-a-1))&1==1:
            A[a]=1
        else:
            A[a]=0
    return A
def get_facs(n,mod_=0):
    A=[1]*(n+1)
    for a in range(2,len(A)):
        A[a]=A[a-1]*a
        if(mod>0):A[a]%=mod_
    return A
def comb(n,r,mod,fac):
    if(n-r<0):return 0
    return (fac[n]*pow(fac[n-r],mod-2,mod)*pow(fac[r],mod-2,mod))%mod
def next_comb(num,size):
    x=num&(-num)
    y=num+x
    z=num&(~y)
    z//=x
    z=z>>1
    num=(y|z)
    if(num>=(1<<size)):return False
    else:
        return num
def get_primes(n,type="int"):
    A=[True]*(n+1)
    A[0]=False
    A[1]=False
    for a in range(2,n+1):
        if A[a]:
            for b in range(a*2,n+1,a):
                A[b]=False
    if(type=="bool"):return A
    B=[]
    for a in range(n+1):
        if(A[a]):B.append(a)
    return B
def is_prime(num):
    if(num<=2):return False
    i=2
    while i*i<=num:
       if(num%i==0):return False
       i+=1
    return True
def ifelse(a,b,c):
    if a:return b
    else:return  c
def join(A,c=""):
    n=len(A)
    A=list(map(str,A))
    s=""
    for a in range(n):
        s+=A[a]
        if(a<n-1):s+=c
    return s
def factorize(n,type_="dict"):
    b = 2
    list_ = []
    while b * b <= n:
        while n % b == 0:
            n //= b
            list_.append(b)
        b+=1
    if n > 1:list_.append(n)
    if type_=="dict":
        dic={}
        for a in list_:
            if a in dic:
                dic[a]+=1
            else:
                dic[a]=1
        return dic
    elif type_=="list":
        return list_
    else:
        return None
def floor_(n,x=1):
    return x*(n//x)
def ceil_(n,x=1):
    return x*((n+x-1)//x)
def hani(x,min_,max_):
    ret=x
    if x<min_:ret=min_
    if x>max_:ret=max_
    return ret
def seifu(x):
    return x//abs(x)
###################################################
def main():
    a,b=map(int,input().split())
    if a>0 and b>0:
        print("Positive")
    elif a<0 and b<0:
        if (b-a+1)%2==1:print("Negative")
        else: print("Positive")
    elif a<=0 and 0<=b:
        print("Zero")
main()

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) or (a > 0 and b <= 0):
  print('Zero')
else:
  if abs(a - b) % 2 == 1:
    print('Positive')
  else:
    print('Negative')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<=b<0:
  print('Negative' if (-1)**(a-b-1)==-1 else 'Positive')
elif a<=0<=b:
  print('Zero')
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:
    print("Zero")
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<= 0 <=b:
    print("Zero")

elif a > 0:
    print("Positive")

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>0:
    print('Positive')
elif a*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 0 < a:
    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 = tuple(map(int,input().split()))

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

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

else:
    print("Negative")

Submission status: Accepted

Solution code:
import sys

#N = I()
#A = [LI() for _ in range(N)]

a, b = list(map(int,sys.stdin.readline().rstrip().split()))

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

Submission status: Accepted

Solution code:
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
#N = I()
#A = [LI() for _ in range(N)]

a, b = list(map(int,sys.stdin.readline().rstrip().split()))

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

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
#N = I()
#A = [LI() for _ in range(N)]

a, b = list(map(int,sys.stdin.readline().rstrip().split()))

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

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
#N = I()
#A = [LI() for _ in range(N)]

a, b = list(map(int,sys.stdin.readline().rstrip().split()))

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

Submission status: Accepted

Solution code:
import sys
#N = I()
#A = [LI() for _ in range(N)]

a, b = list(map(int,sys.stdin.readline().rstrip().split()))

if a > 0:
    print('Positive')
elif a <= 0 and b >= 0:
    print('Zero')
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:
    print('Positive')
elif a <= 0 and b >= 0:
    print('Zero')
else:
    if (a+b)%2 == 0:
        print('Negative')
    else:
        print('Positive')

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,numpy,string
import sys
def S(): return sys.stdin.readline().rstrip()
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
#N = I()
#A = [LI() for _ in range(N)]

a, b = LI()

if a > 0:
    print('Positive')
elif a <= 0 and b >= 0:
    print('Zero')
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:
    print('Positive')

elif a <= 0 and 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:
  print("Positive")
elif a==0 or b==0:
  print("Zero")
elif b<0:
  n=(-a)+b-1 
  if n%2==0:
    print("Positive") 
  else:
    print("Negative") 
else:
  print("Zero")

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, 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 = 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) or a == 0:
    print('Zero')
else:
    print('Positive')

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+1)%2 == 0:
    print('Positive')
  else:
    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:
  print('Positive')
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 0 < a:
    print("Positive")
    exit()
elif 0<=b and a<=0:
    print("Zero")
    exit()
elif b < 0:
    if abs(a-b)%2==0:
        print("Negative")
        exit()
    else:
        print("Positive")
        exit()