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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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

if a > 0:
    print("Positive")
elif a == 0:
    print("Zero")
else:
    if 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*b <= 0:
    print('Zero')
else:
    if 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 = (int(_) for _ in input().split())
if a < 0 and b > 0:
    print('Zero')
elif a > 0 and b > 0:
    print('Positive')
else:
    diff = abs(b - a) + 1
    if diff % 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 (b-a+1)%2==0:
        print("Positive")
    else:
        print("Negative")
else:
    print("Zero")

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
###template###
import sys
def input(): return sys.stdin.readline().rstrip()
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt, ceil, floor
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
import heapq
INF = float("inf")
sys.setrecursionlimit(10**7)
# 4近傍（右, 下, 左, 上）
dy = [0, -1, 0, 1]
dx = [1, 0, -1, 0]
def inside(y: int, x: int, H: int, W: int) -> bool: return 0 <= y < H and 0 <= x < W
def mi(): return map(int, input().split())
def ii(): return int(input())
###template###

a, b = mi()

if a<=0 and b>=0: print("Zero")
elif a>0: print("Positive")
else:
  #このパターンのみ、+と-が入り交じる
  #数が偶数なら+で、奇数なら-
  if (b-a+1)%2==0: print("Positive")
  else: print("Negative")

Submission status: Accepted

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

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

Submission status: Accepted

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


if __name__ == "__main__":
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from fractions import gcd
import math
def inverse(a):
    return pow(a, mod - 2, mod)


def usearch(x, a):
    lft = 0
    rgt = len(a) + 1
    while rgt - lft > 1:
        mid = (rgt + lft) // 2
        if a[mid] <= x:
            lft = mid
        else:
            rgt = mid
    return lft



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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

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

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

if a == b:
    print('Positive')
    exit()

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

if a * b <= 0:
    print("Zero")
    exit()
if 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:
  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:
  answer = 'Positive'
elif b >= 0:
  answer = 'Zero'
else:
  # both negative
  x = b - a + 1
  answer = 'Negative' if x & 1 else 'Positive'

print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin
a,b = [int(x) for x in stdin.readline().rstrip().split()]
if a == 0 and b == 0:
    print("Zero")
elif a > 0 and b > 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 0 <= a:
    print("Positive")
elif b < 0:
    if (b - a + 1) % 2 == 0:
        print("Positive")
    else:
        print("Negative")
else:
    print("Zero")

Submission status: Accepted

Solution code:
from collections import Counter
from collections import deque
from functools import reduce
from pprint import pprint
# import statistics
import bisect
import copy
import fractions
import math
import random
import sys
import time
sys.setrecursionlimit(10**7)
INF = 10 ** 18
MOD = 10 ** 9 + 7
def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def MI(): return map(int, sys.stdin.readline().split())
def II(): return int(sys.stdin.readline())
def IS(): return input()
def C(x): return Counter(x)
def GCD_LIST(numbers): return reduce(fractions.gcd, numbers)
def LCM_LIST(numbers): return reduce(LCM, numbers)
def LCM(m, n): return (m * n // fractions.gcd(m, n))
def unite(x, y):
    # それぞれのノードの根を求める
    x = root(x)
    y = root(y)
    if x == y:
        return
    # node[x]の根をyに変更する
    node[x] = y
def same(x,y): return bool(root(x) == root(y))
def root(x):
    if node[x] == x:  # xが根の場合
        return x
    else:
        node[x] = root(node[x])  # 経路圧縮
        return node[x]
def dfs(v):
    # ノードに訪れた
    visited[v] = True
    for v2 in range(n):
        if graph[v][v2] == False:  # そもそもvとv2が辺でつながっていない
            continue
        if visited[v2] == True:  # もう見た
            continue
        dfs(v2)


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

Submission status: Accepted

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

Submission status: Accepted

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

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

# print(*data, sep='\n')

Submission status: Accepted

Solution code:
num_1 , num_2 = input().split()
num_1 = int(num_1)
num_2 = int(num_2)

if (num_1 > 0) and (num_2 > 0):
    print("Positive")

elif ((num_1 > 0) and (num_2 < 0)) or ((num_1 < 0) and (num_2 > 0)):
    print("Zero")

elif (num_1 < 0)and (num_2 < 0):
    if ((num_1 - num_2)%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")

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
A - Range Product
https://atcoder.jp/contests/agc002/tasks/agc002_a

"""
import sys


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


def main(args):
    a, b = map(int, input().split())
    ans = solve(a, b)
    print(ans)


if __name__ == '__main__':
    main(sys.argv[1:])

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if (B < 0):
	print(["Negative", "Positive"][(A - B) % 2])
	exit()

if (0 < A):
	print("Positive")
	exit()

print("Zero")

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

elif a > 0:
    ans = 'Positive'
else:
    ans = 'Zero'

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#AGC002 A 23:04 - 
'''
問題
整数a,bが与えられる。ただしa<=bである。
このときa,a+1,...,bをすべて掛け合わせた積が正か負か0かを判定せよ
ただしa,bは-10**9以上10**9以下かつa<=b

考察
a*b<=0なら答えは0
a*b>0かつa+b>0なら答えは正
a*b>0かつa+b<0なら...
	aからbまで奇数個の数があれば答えは負
		つまりa-bが偶数なら答えは負
	aからbまで偶数個の数があれば答えは正
		つまりa-bが奇数なら答えは正
'''

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

ans = {
    1: 'Positive',
    -1: 'Negative',
    0: 'Zero'
}

res = None
if a > 0:
    res = 1
elif a * b < 0 or a == 0 or b == 0:
    res = 0
else:
    res = (-1) ** ((abs(a - b) + 1) % 2)

print(ans[res])

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

Submission status: Accepted

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

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

Submission status: Accepted

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



if __name__=="__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = map(int, input().split())

if A*B > 0:
    if A < 0:
        if (B-A)%2 == 0:
            print('Negative')
            exit()
    print('Positive')
    exit()
print('Zero')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding:utf-8

import sys
from collections import defaultdict, deque

INF = float('inf')
MOD = 10 ** 9 + 7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x) - 1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def II(): return int(sys.stdin.readline())
def SI(): return input()


def main():
    a, b = LI()

    if a <= 0 and b >= 0:
        return 'Zero'

    if a > 0:
        return 'Positive'

    if (b - a) % 2:
        return 'Positive'
    else:
        return 'Negative'


print(main())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N, M = map(int, input().split())

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

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a*b<0:
    print('Zero')
elif 0<a:
    print('Positive')
else:
    neg_range = min(-1,b) - a +1
    if neg_range%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*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());print('NPeogsaittiivvee'[a>0 or(b-a)%2::2]*(a*b>0)or'Zero')

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
G, B = map(int,input().split())

if G>0 and B>0:
    print('Positive')

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

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