a, b = gets.split.map(&:to_i) if (a % b == 0) then puts a % b elsif (b / a < b) then puts b / a + 1 end