a,b=gets.split.map(&:to_i) d = b % a m = b - a * d d += 1 if m > 0 puts d