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