n, m = map(int, raw_input().split()) if n > m: print -1 elif n == m or n < m: print 1 else: print -1