x=eval(input().replace(" ","-")) print(x if x>=0 else -1)