a, b = io.read("*n", "*n") if b == 0 then print(1) elseif a == -1 then print(2) else print(-1) end