CF1061A.Coins

传统题 时间 2000 ms 内存 256 MiB 3 尝试 1 已通过 1 标签

Coins

You have unlimited number of coins with values 1,2,,n1, 2, \ldots, n. You want to select some set of coins having the total value of SS.

It is allowed to have multiple coins with the same value in the set. What is the minimum number of coins required to get sum SS?

Input

The only line of the input contains two integers nn and SS (1n1000001 \le n \le 100\,000, 1S1091 \le S \le 10^9)

Output

Print exactly one integer — the minimum number of coins required to obtain sum SS.

Note

In the first example, some of the possible ways to get sum 1111 with 33 coins are:

  • (3,4,4)(3, 4, 4)
  • (2,4,5)(2, 4, 5)
  • (1,5,5)(1, 5, 5)
  • (3,3,5)(3, 3, 5)

It is impossible to get sum 1111 with less than 33 coins.

In the second example, some of the possible ways to get sum 1616 with 33 coins are:

  • (5,5,6)(5, 5, 6)
  • (4,6,6)(4, 6, 6)

It is impossible to get sum 1616 with less than 33 coins.

Samples

5 11
3
6 16
3

在线编程 IDE

建议全屏模式获得最佳体验