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

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
a,b = [int(i) for i in input().split()]
if a<=0 and 0<=b:
    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*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:
a, b = map(int, input().split())

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

Submission status: Accepted

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

if a > 0:
    ans = 'Positive'
elif a <= 0 <= b:
    ans = 'Zero'
else:
    neg = b - a + 1
    if neg % 2 == 0:
        ans = 'Positive'
    else:
        ans = 'Negative'

print(ans)

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def solve():
    N, M = map(int, input().split())
    if N > 0:
        return 'Positive'
    elif N <= 0 <= M:
        return 'Zero'
    else:
        
        if (-(N-M)+1) % 2 == 0:
            return 'Positive'
        else:
            return 'Negative'
            
    return 0

print(solve())

Submission status: Accepted

Solution code:
def pin(type=int):
    return map(type,input().split())
    
#どっかで最悪計算量の入力データを用意する関数を作ろう？
"""
"""

#solution:
#input
a,b=pin()
if a*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 = map(int,input().split())
if a == 0 or b == 0:
    print("Zero")
else:
    if 0<a<=b:
        print("Positive")
    elif a<=0<b:
        print("Zero")
    elif a<=b<0:
        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("Zero")
elif b <= 0 and b >= 0:
    print("Zero")
elif a == 0 or b == 0:
    print("Zero")
elif a > 0 and a > 0:
    print("Positive")
elif a < 0 and b < 0:
    c = abs( b - a + 1)
    if c %2 == 1:
        print("Negative")
    else:
        print("Positive")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

if a <= 0 <= b:
    print('Zero')
else:
    if b < 0:
        if (abs(a + b) + 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")

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
ans=['Positive','Negative','Zero']

if a*b<=0:
    print(ans[-1])
elif a>0:
    print(ans[0])
else:
    if (b-a+1)%2==0:
        print(ans[0])
    else:
        print(ans[1])

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# B 
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a,b=nm()

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

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
A, B = map(int,input().split())

if A*B<=0:
	res = "Zero"
elif A>0:
	res = "Positive"
elif (B-A+1)%2:
	res = "Negative"
else:
	res = "Positive"

print(res)

Submission status: Accepted

Solution code:
from sys import stdin

a,b = [int(x) for x in stdin.readline().rstrip().split()]

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

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

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

Submission status: Accepted

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

if 0<a<b:
    print('Positive')

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

Submission status: Accepted

Solution code:
def examA():
    a, b = LI()
    if a>0:
        ans = "Positive"
        print(ans)
        return
    if b>=0:
        ans = "Zero"
    else:
        judge = b-a
        if judge%2==1:
            ans = "Positive"
        else:
            ans = "Negative"
    print(ans)
    return

import sys,copy,bisect,itertools,heapq,math
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LSI(): return list(map(str,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def SI(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

if __name__ == '__main__':
    examA()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

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

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

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

x = b - a + 1
if x & 1:
    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 or (a-b)%2==1:
    print("Positive")
else:
    print("Negative")

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
A, B = map(int, input().split(' '))

if A == 0 or B == 0:
    print('Zero')

elif A <= 0 and 0 <= B:
    print('Zero')

elif A > 0 and B > 0:
    print('Positive')

else: #A < 0 and B < 0:
    n = (B - A + 1)
    if n % 2 == 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B =  map(int,input().split())
b = []
count = 0
if A <0 and B<0:
  A =A + B
if A <= 0 and B >= 0:
  print('Zero')
elif A<0 and 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) or (a < 0 and b < 0 and (b - a - 1) % 2 == 0):
  print('Positive')
elif a * b <= 0:
  print('Zero')
elif (a < 0 and b < 0 and (b - a - 1) % 2 == 1):
  print('Negative')

Submission status: Accepted

Solution code:
import sys
import os
if sys.platform=="darwin":
	base = os.path.dirname(os.path.abspath(__file__))
	name = os.path.normpath(os.path.join(base, '../Documents/input.txt'))
	#print(name)
	sys.stdin = open(name)

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

ans = 1

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

Submission status: Accepted

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

if a<=0 and b>=0:
  ans = "Zero"

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import itertools#これは色々使える組み込み関数みたいなやつ
import math#数学的計算はこれでいける。普通に0.5乗しても計算可能
#N = int(input())

#t, x, y = [0]*(N+1), [0]*(N+1), [0]*(N+1)#N+1個の空のリストを作成(原点を入れて##るから一つ増える)
#delta_t=0
#delta_x=0
#delta_y=0
#l=0
#t[0],x[0],y[0]=[0, 0, 0]
#とりあえず入力までは完成した．
#for i in range(N):
# t[i+1], x[i+1], y[i+1] = map(int, input().split())
a_b =  list(map(int, input().split()))

if a_b[0] <= 0 and a_b[1] >= 0:
    print("Zero")
    sys.exit()
    
if a_b[0] >=1 :
    print("Positive")
    sys.exit()
if (a_b[1]-a_b[0]+1)%2 ==0:
    print("Positive")
    sys.exit()
else:
    print("Negative")
    sys.exit()

Submission status: Accepted

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

print(ans)

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 or b == 0):
    print('Zero')
else:
    print('Positive')

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
sys.setrecursionlimit(10000000)
INF = 1<<32


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

    else:
        print("Zero")

    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    a = int(next(tokens))  # type: int
    b = int(next(tokens))  # type: int
    solve(a, b)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
# import numpy as np 
 
def main():
    a, b = map(int, sys.stdin.read().split())
 
    if 0 < a:
        ans = 'Positive'
    elif 0 <= b:
        ans = 'Zero'
    else:
        if (b - a + 1) % 2 == 0:
            ans = 'Positive'
        else:
            ans = 'Negative'
    
    print(ans)
 
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
# 2019-11-24 12:12:53(JST)
import sys
# import numpy as np 

def main():
    a, b = map(int, sys.stdin.read().split())

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def inpl():
    return list(map(int, input().split()))


a, b = inpl()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
a,b=map(int,input().split())
if a<0 and b<0 and (b-a)%2==0:
    print('Negative')
elif a<0 and b>=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")
    exit()

if a > 0:
    print("Positive")
    exit()
    
res = min(0,b) - min(0,a) + 1

if res%2 == 0:
    print("Positive")
else:
    print("Negative")

Submission status: Accepted

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

if a == 0 or b == 0 or 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:
#!/usr/bin/env python3

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

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

ans = r
print(ans)

Submission status: Accepted

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
import sys,bisect,math,itertools,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpln(n): return list(int(sys.stdin.readline()) for i in range(n))

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

print("Positive")