x, y = gets.split.map(&:to_i) if x == y p 0 elsif y == 0 p 1 elsif x == 0 p 2 else p -1 end