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