x = gets.to_f y = gets.to_f l = gets.to_i a = x.abs / l b = y.abs / l i = a.ceil + b.ceil i += 1 if y < 0 i -= 1 if x == 0 && y >= 0 p i + 1