const rl = require("readline").createInterface({ input: process.stdin });
var iter = rl[Symbol.asyncIterator]();
const readline = async () => (await iter.next()).value;
void (async function () {
const [m, n] = (await readline()).split(" ").map(Number);
const speeds = [];
for (let i = 0; i < m; i++) {
speeds.push(Number(await readline()));
}
let arrived = 0;
for (let i = 0; i < m; i++) {
const speed = speeds[i];
arrived = Math.max(arrived, n / speed + i);
}
const cost = arrived - (m - 1);
console.log(cost);
})();