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

Submission status: Accepted

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

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

ans = 'Positive'

if a*b <= 0:
    ans = 'Zero'
elif a < 0 and b < 0 and (a-b)%2 == 0:
    ans = 'Negative'
    
print(ans)

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**8) 
 
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

a,b = li()

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

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
 
sys.setrecursionlimit(10**8) 
 
def li(): return map(int, stdin.readline().split())
def li_(): return map(lambda x: int(x)-1, stdin.readline().split())
def lf(): return map(float, stdin.readline().split())
def ls(): return stdin.readline().split()
def ns(): return stdin.readline().rstrip()
def lc(): return list(ns())
def ni(): return int(stdin.readline())
def nf(): return float(stdin.readline())

a,b = li()

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

if 0 < A:
    print('Positive')
elif B < 0:
    c = B-A+1
    print('Negative' if c%2 else 'Positive')
else:
    c = -A
    print('Negative' if c%2 else 'Positive')

Submission status: Accepted

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

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

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

Submission status: Accepted

Solution code:
# python template for atcoder1
import sys
sys.setrecursionlimit(10**9)
input = sys.stdin.readline
linp = list(map(int, input().split()))

a, b = linp

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

Submission status: Accepted

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

import sys, re
from collections import deque, defaultdict, Counter
from math import sqrt, hypot, factorial, pi, sin, cos, radians
if sys.version_info.minor >= 5: from math import gcd
else: from fractions import gcd 
from heapq import heappop, heappush, heapify, heappushpop
from bisect import bisect_left, bisect_right
from itertools import permutations, combinations, product
from operator import itemgetter, mul
from copy import deepcopy
from functools import reduce, partial
from fractions import Fraction
from string import ascii_lowercase, ascii_uppercase, digits

def input(): return sys.stdin.readline().strip()
def ceil(a, b=1): return int(-(-a // b))
def round(x): return int((x*2+1) // 2)
def fermat(x, y, MOD): return x * pow(y, MOD-2, MOD) % MOD
def lcm(x, y): return (x * y) // gcd(x, y)
def lcm_list(nums): return reduce(lcm, nums, 1)
def gcd_list(nums): return reduce(gcd, nums, nums[0])
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

a, b = MAP()

# 全部正の範囲内
if a > 0:
    print('Positive')
# 全部負の範囲内
elif b < 0:
    # 何個かけるかの偶奇で正負は決まる
    if (abs(b-a)+1) % 2 == 0:
        print('Positive')
    else:
        print('Negative')
# 0をまたげば必ず0
else:
    print('Zero')

Submission status: Accepted

Solution code:
#!usr/bin/env python3
from collections import defaultdict
import math
def LI(): return list(map(int, input().split()))
def II(): return int(input())
def LS(): return input().split()
def S(): return input()
def LIR(n): return [LI() for i in range(n)]
mod = 1000000007

#A
"""
a,b = LS()
c = int(a+b)
for i in range(1,1000):
    if i * i == c:
        print("Yes")
        quit()
print("No")
"""
#B
a,b = LI()
if a*b <= 0:
    print("Zero")
else:
    if b < 0:
        if (a-b) %2 == 1:
            print("Positive")
        else:
            print("Negative")
    else:
        print("Positive")
#C

#D

#E

#F

#G

#H

#I

#J

#K

#L

#M

#N

#O

#P

#Q

#R

#S

#T

Submission status: Accepted

Solution code:
#a
"""
import math
a, b = map(str, input().split())
j = int(a + b)
if math.sqrt(j).is_integer():
    print("Yes")
else:
    print("No")
"""

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def a():return input()#s
def ai():return int(input())#a,n or k
def ma():return map(int, input().split())#a,b,c,d or n,k
def ms():return map(str, input().split())#,a,b,c,d
def lma():return list(map(int, input().split()))#x or y
def lms():return list(map(str, input().split()))#x or y
k= []
l = []
f = 0
def say(i):return print("Yes" if i == 0 else "No")
def Say(i):return print("YES" if i == 0 else "NO")

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

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+1)%2==0:
		print('Positive')
	else:
		print('Negative')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from collections import deque
import copy
import math
def get_read_func(fileobject):
    if fileobject == None :
        return raw_input
    else:
        return fileobject.readline


def main():
    if len(sys.argv) > 1:
        f = open(sys.argv[1])
    else:
        f = None
    read_func = get_read_func(f);
    input_raw = read_func().strip().split()
    [a, b] = [int(input_raw[0]), int(input_raw[1])]
    if (a > 0):
        print "Positive"
        return

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(str,input().split())#整数を文字列として入力
S = a+b
P = S.count("-")
if P == 1:
  print("Zero")
elif P == 2:
  if (int(b) - int(a)) % 2 ==0:
    print("Negative")
  else:
    print("Positive")
else:
  print("Positive")

Submission status: Accepted

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


def main():
    """Function."""
    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) % 2 == 0:
            print("Negative")
        else:
            print("Positive")


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# coding: utf-8
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:
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)%2==0:
        print("Negative")
    else:
        print("Positive")
else:
    print("??")

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import sys

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

def readQuestion():
    ws = sys.stdin.readline().strip().split()
    a = int(ws[0])
    b = int(ws[1])
    return (a, b,)

def main():
    solve(*readQuestion())

# Uncomment before submission
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = [int(i) for i in 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("Positive")
else:
    print("Zero")

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# cook your dish here
a,b = map(int,input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

if a * b <= 0:
  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())

positive = "Positive"
negative = "Negative"
zero = "Zero"

if a > 0 and b > 0:
    print(positive)
elif (a <= 0 and b >= 0) or (a >= 0 and b <= 0):
    print(zero)
else:
    if (b - a) % 2:
        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 (abs(b-a)%2 == 0 and a < 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()

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a <= 0 <= b:
    print("Zero")
elif 0 < a:
    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 and 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:
s = input().split()
if int(s[0])>0 :
    print("Positive")
else :
    if int(s[1])>=0 :
        print("Zero")
    else :
        if (int(s[0])&1)^(int(s[1])&1) :
            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) or (a <= 0 and b >= 0):
    print("Zero")

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

Submission status: Accepted

Solution code:
from sys import stdin


def main() -> None:
    a = next_int()
    b = next_int()

    print(("Negative", "Zero", "Positive")[calc(a, b) + 1])


def calc(a: int, b: int) -> int:
    if a <= 0 <= b:
        return 0
    elif a > 0 or (b - a) % 2 != 0:
        return 1
    else:
        return -1


def next_int() -> int:
    return int(next_str())


def next_str() -> str:
    result = ""
    while True:
        tmp = stdin.read(1)
        if tmp.strip() != "":
            result += tmp
        elif tmp != '\r':
            break
    return result


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

cont0 = False
if a <= 0 <= b:
  cont0 = True

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print('PNoesgiattiivvee'[b<0and(b-a+1)%2::2]*(a*b>0)or'Zero')

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print('NPeogsaittiivvee'[a>0or(b-a)%2::2]*(a*b>0)or'Zero')

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print('Zero'*(a*b<=0)or'NPeogsaittiivvee'[a>0or(b-a)%2::2])

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print('Zero'*(a*b<=0)or'NPeogsaittiivvee'[b>=0or(b-a)%2::2])

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print('Zero'*(a*b<=0)or'PNoesgiattiivvee'[b<0and(b-a+1)%2::2])

Submission status: Accepted

Solution code:
a,b=map(int,input().split());print('Zero'*(a+b==0or abs(a+b)<abs(a)+abs(b))or'NPeogsaittiivvee'[a>0or(b-a)%2::2])

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

INF = float('inf')


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


a, b = inpl()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main20():
    strbuf = input("");
    strbufs = strbuf.split();
    buf = [];
    for i in range(2):
        buf.append(int(strbufs[i]));
    if buf[0] <= 0 and 0 <= buf[1]:
        print("Zero");
    elif buf[0] > 0:
        print("Positive");
    else:
        kazu = buf[1] - buf[0] + 1;
        if kazu % 2 == 0:
            print("Positive");
        else:
            print("Negative");


if __name__ == '__main__':
    main20()

Submission status: Accepted

Solution code:
def pn(x):
    res = ''
    if x > 0:
        res = 'Positive'
    elif x == 0:
        res = 'Zero'
    else:
        res = 'Negative'
    return res

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

ans = ''
if a > 0:
    ans = pn(1)
elif a <= 0 <= b:
    ans = pn(0)
elif b < 0:
    if (b - a + 1) % 2 == 0:
        ans = pn(1)
    else:
        ans = pn(-1)
print(ans)

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
  t = input().split(" ")
  A = int(t[0])
  B = int(t[1])
  
  if B < 0:
    if (B - A) % 2 == 1:
    	print("Positive")
    else :
    	print("Negative")
  elif 0 < A:
    print("Positive")
  else:
    print("Zero")
    
main()

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = [int(_) for _ in input().split()]

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

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a * b <= 0:
    print('Zero')#途中に0を挟む
elif a > 0:
    print('Positive')#積は正
elif (b - a + 1) % 2 == 1:
    print('Negative')#a,b区間は全て負の値で、その個数は奇数なので、積は負
else:
    print('Positive')#積は正

Submission status: Accepted

Solution code:
a, b = list(map(int, input().split()))
if a == 0:
	print("Zero")
elif 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:
from collections import defaultdict 
import sys,heapq,bisect,math,itertools,string

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

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

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

print(ans)

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

Submission status: Accepted

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

Submission status: Accepted

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