N, M = map(int, input().split()) print(1 if N < M + 1 else -1)