A. Coins
time limit per test

2 seconds

memory limit per test

256 megabytes

input

standard input

output

standard output

You have unlimited number of coins with values 1,2,,n1,2,…,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≤n≤1000001S1091≤S≤109)

Output

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

Examples

input

Copy
5 11

output

Copy
3

input

Copy
6 16

output

Copy
3
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.

The meaning of the question: give you two integers n and s, at least how many repeatable numbers between 1~n are used to form s?

Answer: s/n+s%n?1:0;

发表评论

邮箱地址不会被公开。 必填项已用*标注