a,b = gets.split.map(&:to_i) sum = 0 (1..b).each do |i| c = i * a sum += 1 if c >= b break end end puts sum