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