from sys import stdin def main(): input = lambda: stdin.readline()[:-1] A, B = map(int, input().split()) if (A > 0 and B > 0) or not A: print(-1) return ans = abs(B // A) print(max(1, ans)) main()