Problem:


  MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});

日の出と日の入り 

太陽が現れることを「日の出」、隠れることを「日の入り」と呼びますが、その厳密な時刻は太陽が地平線に対してどのような位置にある時でしょうか。

下の図のように、太陽を円、地平線を直線で表すことにします。このとき、太陽の「日の出」「日の入り」の時刻は、太陽を表す円の上端が地平線を表す直線と一致する瞬間とされています。日の出の時刻を過ぎ、円の上端が直線より上にある時間帯が昼間、円が直線の下へ完全に隠れている時間帯が夜間となります。

ある時刻の地平線から太陽の中心までの高さと、太陽の半径を入力とし、その時刻が「昼間」か、「日の出または日の入り」か、「夜間」かを出力するプログラムを作成せよ。

Input

入力は以下の形式で与えられる。 

H R

入力は１行からなり、ある時刻の地平線から太陽の中心までの高さを表す整数 H (-1000 ≤ H ≤ 1000) と半径を表す整数 R (1 ≤ R ≤ 1000) が与えられる。ただし、H は太陽の中心が地平線上にあるときを 0 として、それより上にあるときは正、下にあるときは負とする。

Output

昼間のとき「1」、日の出または日の入りのとき「0」、夜間のとき「-1」を１行に出力する。 

Sample Input 1

-3 3

Sample Output 1

0

Sample Input 2

3 3

Sample Output 2

1

Sample Input 3

-4 3

Sample Output 3

-1



Sample input:
-3 3


Sample output:
0

Submission status: Wrong Answer

Solution code:
H,R = map(int,input().split())

if H-R >0:
    print(1)
elif abs(H)-R ==0:
    if H>0:
        print(1)
    else:
        print(0)
else:
    print(-1)

Submission status: Wrong Answer

Solution code:
E,Y = map(int,input().split())

if E ==0:
    if 1911>Y:
        print("M"+str(Y-1867))
    elif 1925>Y:
        print("T"+str(Y-1911))
    elif 1988>Y:
        print("S"+str(Y-1925))
    else:
        print("H"+str(Y-1988))
elif E==1:
    print(1868+Y)
elif E==2:
    print(1912+Y)
elif E==3:
    print(1926+Y)
else:
    print(1989+Y)

Submission status: Wrong Answer

Solution code:
h, r = map(int, input().split())
if h >= r: print(1)
else: print(0 if h + r == 0 else -1)

Submission status: Wrong Answer

Solution code:
h, r = map(int, input().split())
if h + r < 0:print(-1)
else:print(0 if h == r else 1)

Submission status: Accepted

Solution code:
h, r = list(map(int, input().split()))
print(int((h+r>0)-(h+r<0)))

Submission status: Accepted

Solution code:
H,R = map(int,input().split())

if H>=0:
    print(1)
elif  H<0:
    if H+R>0:
        print(1)
    elif H+R==0:
        print(0)
    else:
        print(-1)

Submission status: Accepted

Solution code:
h, r = map(int, input().split())
if h >= r or h >= 0: print(1)
else: print(0 if h + r == 0 else -1)

Submission status: Accepted

Solution code:
H,R=map(int,input().split())
print(0 if H+R==0 else(1 if 0<=H+R else -1))

Submission status: Accepted

Solution code:
h, r = [int(num) for num in input().split()]
if h == -r:
    print(0)
elif h > -r:
    print(1)
else:
    print(-1)

Submission status: Accepted

Solution code:
def f(h,r):
    ret = r+h
    if ret != 0:
        ret //= abs(ret)
    return ret

def main():
    h,r = map(int,input().split())
    print(f(h,r))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
h,r=map(int,input().split())
if h>=0:
    print(1)
elif h+r==0:
    print(0)
else:
    print(-1)

Submission status: Accepted

Solution code:
h, r = map(int, input().split())
if h + r < 0:print(-1)
else:print(0 if h + r == 0 else 1)

Submission status: Accepted

Solution code:
h, r = map(int, input().split())
if h + r == 0:
  print(0)
elif h + r > 0:
  print(1)
else:
  print(-1)

Submission status: Accepted

Solution code:
H, R = map(int, input().split())
A, B = H+R, 0
if A>0:
	B=1
elif A<0:
	B=-1
print(B)

Submission status: Accepted

Solution code:
h,r = map(int,input().split())

if h + r == 0 :
    print(0)
elif h + r > 0 :
    print(1)
else:
    print(-1)

Submission status: Accepted

Solution code:
H, R = map(int, input().split())
if H + R > 0 :
    print(1)
elif H + R == 0 :
    print(0)
else :
    print(-1)

Submission status: Accepted

Solution code:
#標準入力
i = sum(list(map(int,input().split())))

#2数の合計が0なら0負の数なら-1正の数なら1を出力する
if i == 0:print("0")
elif i > 0:print("1")
else:print("-1")

Submission status: Accepted

Solution code:
h,r=map(int,input().split())
if h+r==0:
    print('0')
elif h+r<0:
    print('-1')
else:
    print('1')

Submission status: Accepted

Solution code:
h,r=map(int, input().split())
if h+r>0:
    print(1)
elif h+r==0:
    print(0)
else:
    print(-1)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a+b == 0:
    print(0)
elif a+b > 0:
    print(1)
else:
    print(-1)

Submission status: Accepted

Solution code:
p = sum([ int(s) for s in input().split() ])
  
if p == 0:
    print(0)
elif p < 0:
    print(-1)
else:
    print(1)

Submission status: Accepted

Solution code:
nums = [int(e) for e in input().split()]

h = nums[0]
r = nums[1]

k = h + r

if k >= 1:
    print("1")
elif k <= -1:
    print("-1")
elif k == 0:
    print("0")

Submission status: Accepted

Solution code:
h,r=map(int,input().split())
if h<0:
    print(-1 if h+r<0 else 0 if h+r==0 else 1)
else:
    print(1)

Submission status: Accepted

Solution code:
h,r=map(int,input().split())
if h+r>0:
    print("1")
elif h+r<0:
    print("-1")
else:
    print("0")

Submission status: Accepted

Solution code:
H, R = map(int, input().split())
if H*(-1) == R: print(0)
elif H*(-1) > R: print(-1)
elif H*(-1) < R: print(1)

Submission status: Accepted

Solution code:
h, r = map(int, input().split())

if h+r == 0:
    print(0)
elif h+r > 0:
    print(1)
else:
    print(-1)

Submission status: Runtime Error

Solution code:
h, r = list(map(int, input().split()))
print(int((h+r)/abs(h+r)))