n = gets.to_i m = gets.to_i for i in 1..m do k = n * i if k > m or k >= m then puts i break end end