n,m=map(int,input().split())

if m>=n:
    print(1)
else:
    print(-1)