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 = list(map(int,input().split()))

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

Submission status: Accepted

Solution code:
def a_range_product(A, B):
    ans = ''
    if A * B <= 0:
        ans = 'Zero'  # 区間 [A,B] の内部に必ず0を含む
    else:
        if A > 0:
            ans = 'Positive'  # A>0ならB>0
        else:  # A<0,B<0のときここを通る
            ans = 'Negative' if abs(B - A + 1) % 2 == 1 else 'Positive'
    return ans

A, B = [int(i) for i in input().split()]
print(a_range_product(A, B))

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
n,m = map(int,raw_input().split())

if n*m < 0 :
	print 'Zero'
elif n+m< 0 and abs(n-m)%2==0:
	print 'Negative'
else:
	print 'Positive'

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

Submission status: Accepted

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

# AtCoder Grand Contest
# Problem A


if __name__ == '__main__':
    a, b = list(map(int, input().split()))

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

Submission status: Accepted

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

# AtCoder Grand Contest
# Problem A


if __name__ == '__main__':
    a, b = list(map(int, input().split()))

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

Submission status: Accepted

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

Submission status: Accepted

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

import sys, math, copy
# import fractions, itertools
# import numpy as np
# import scipy

HUGE = 2147483647
HUGEL = 9223372036854775807
ABC = "abcdefghijklmnopqrstuvwxyz"

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

print(main())

Submission status: Accepted

Solution code:
import math
import sys

def getinputdata():

    # 配列初期化
    array_result = []    
    data = input()
    array_result.append(data.split(" "))

    flg = True

    try:
        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = True

            else:

                flg = False
    finally:

        return array_result

arr_data = getinputdata()

a = int(arr_data[0][0])
b = int(arr_data[0][1])

#print(a,b)

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

# 数 値 読 み 込 み
a,b = [int(i) for i in input().split()]


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

Submission status: Accepted

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

    if a <= 0 <= b:
        ans = "Zero"
    elif a > 0:
        ans = "Positive"
    elif b < 0:
        ans = "Negative"
        c = b - a
        # a == bのとき負が2個
        if c == 0 or c % 2 == 1:
            ans = "Positive"

    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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

print (res)

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(solve(a, b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = [int(x) for x in raw_input().split()]
if a * b <= 0:
  print "Zero"
else:
  print ["Negative", "Positive"][a > 0 or (b - a) % 2 == 1]

Submission status: Accepted

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

Submission status: Accepted

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

solve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
a, b = map(int, input().split())
ans = 1
if a <= 0 <= b:
    ans = 0
elif b < 0:
    ans = (b - a + 1) % 2 + 1
print(('Zero', 'Positive', 'Negative')[ans])

Submission status: Accepted

Solution code:
s, e = map(int, input().split())

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n, m = (int(i) for i in input().split())

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

if m >= 0:
    print("Zero")
    exit(0)

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-



def main():
    A, B = map(int, input().split())

    if 0 < A:
        sign = 1
    elif A <= 0 <= B:
        sign = 0
    else: # B < 0
        even = (B-A+1) % 2 == 0
        sign = 1 if even else -1

    if sign > 0:
        print("Positive")
    elif sign == 0:
        print("Zero")
    else:
        print("Negative")

if __name__ == "__main__": main()

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
INF = 10 ** 10


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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
	range_product()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin


def main():
    a,b = [int(x) for x in stdin.readline().strip().split()]
    if b>=0 and a<=0:
        print('Zero')
    elif b>0 and a>0:
        print("Positive")
    else:
        a = abs(a)
        b = abs(b)
     
        if ((b-a)+1)%2==0:
            print("Positive")
        else:
            print("Negative")
main()

Submission status: Accepted

Solution code:
from sys import stdin

def main():
	a,b = [int(x) for x in stdin.readline().strip().split()]
	if a == 0 or b == 0 or ( a < 0 and b > 0):
		print("Zero")
	elif a > 0 and b > 0 or (a == b):
		print("Positive")
	else:
		val = abs(abs(b)-abs(a))
		if val%2 == 0 :
			print("Negative")
		else:
			print("Positive")
main()

Submission status: Accepted

Solution code:
# -*- coding:utf-8 -*-
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 or abs(b-a)%2 != 0:
        print('Positive')
    else:
        print('Negative')

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# input including new line and return list of int
def get_include_new_line_input():
	pass
	N = int(input())
	a = []
	for x in range(N):
		a.append(int(input()))
	return a


# input splitted by space and return list of int
def get_spilitted_space_input():
	a = list(map(lambda x:int(x), input().split()))
	return a

# input is list of num
# output is string meaning the sign
def which_sign(a):
	if a[0] <= 0 and 0 <= a[1]:
		return 'Zero'
	elif a[0] > 0:
		return 'Positive'
	else :
		if (a[1] - a[0]) % 2 == 0:
			return 'Negative'
		else:
			return 'Positive'

if __name__ == '__main__':
	input_list = get_spilitted_space_input()
	print(which_sign(input_list))

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time

sys.setrecursionlimit(10**7)
inf = 10**10
mod = 10**9 + 7


def f():
    a,b = list(map(int, input().split()))
    if a * b == 0 or (a < 0 and b > 0):
        return 'Zero'
    if b < 0 and (a+b) % 2 == 0:
        return 'Negative'
    return 'Positive'

print(f())

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#AGC002A

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

Submission status: Accepted

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

Submission status: Accepted

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

if (a < 0 and b < 0):
    if (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:
import math

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Mon Aug  1 00:00:01 2016

@author: dotha
"""

def h(a):
    if a[0]*a[1] <= 0:
        return 'Zero'
    elif a[0] < 0:
        if (a[1]-a[0])%2 == 0:
            return 'Negative'
        else:
            return 'Positive'
    else:
        return 'Positive'
        
print(h(list(map(int,input().split(' ')))))

Submission status: Accepted

Solution code:
# coding: utf-8

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

if a > 0:
  print "Positive"

elif b >= 0:
  print "Zero" #Fate/Zeroは神アニメ

else:

  if (b - a) % 2 == 0:
    print "Negative"

  else:
    print "Positive"

Submission status: Accepted

Solution code:
#!/usr/bin/env python
# -*- coding:utf-8 -*-

from __future__ import division, print_function, absolute_import, unicode_literals

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

if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

def main():
    l = input().split()
    a = int(l[0])
    b = int(l[1])

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
def IsZero(a, b):
    if a == 0 or b == 0:
        return True
    elif a < 0 and b > 0:
        return True
    else:
        return False

def IsPositive(a, b):
    if a > 0:   # and b > 0
        return True
    else:
        if (b - a + 1) % 2 == 0:
            return True
        else:
            return False


a, b = (int(i) for i in input().split())

if IsZero(a, b):
    print("Zero")
elif IsPositive(a, b):
    print("Positive")
else:
    print("Negative")

Submission status: Accepted

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

Submission status: Accepted

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

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

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

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

Submission status: Accepted

Solution code:
import sys
a,b=[int(x) for x in input().split()]
reverse=0
if(a<=0 and b>=0):
    print("Zero")
    sys.exit()
if(a>0):
    print("Positive")
    sys.exit()
if(b-a)%2:
    print("Positive")
    sys.exit()
print("Negative")

Submission status: Accepted

Solution code:
[a,b]=[int(x) for x in input().split(" ")]
if a*b==0:
    print("Zero")

elif a>0 :
    print("Positive")

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

else:
    print("Zero")

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# スペース区切りの整数の入力
a, b = map(int, raw_input().split())
dnum=b-a+1
if b<0:
    odd=0
    if dnum%2==1:
        odd=1
    if odd==0:
        print "Positive"
    else:
        print "Negative"
if a*b==0:
    print "Zero"
if b>0 and a<0:
    print "Zero"
if a>0:
    print "Positive"

Submission status: Accepted

Solution code:
ab=raw_input().split()
a=int(ab[0])
b=int(ab[1])
num=1
if a <=0 and b>=0:
    print 'Zero'
elif a>0:
    print 'Positive'
elif (b-a)%2==0:
    print 'Negative'
else:
    print'Positive'

Submission status: Accepted

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

A, B = map(int, input().split())
if A < 0:
    if B < 0:
        print('Positive' if (abs(A)-abs(B))%2 else 'Negative')
    else:
        print('Zero')
else:
    print('Positive')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def f(x):
    if x>0:return 1
    elif x<0:return -1
    elif x==0:
        return 0


a,b=list(map(int,input().split()))
if a<= 0 and b>=0:
    print('Zero')

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

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