import sequtils,strutils var A, B: int (A, B) = stdin.readline.split.map(parseInt) if B == 0: echo 1 elif A == -1: echo 2 else: echo -1