시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB35728024980.064%

문제

Vinicius is at a board meeting of the “Instituto de Consultoria de Palestras e Comentários” (ICPC) thinking that it would be great if the board members were more concise and kept their speeches within the time allotted for each director, so that the meeting could end before lunch. Unfortunately, perhaps due to the nature of the institution, everyone loves to talk.

Knowing that

  • there are $N$ directors who will speak at the meeting;
  • each director will speak for the same amount of time;
  • and that between two consecutive speeches there is a $1$-minute interval,

determine the maximum length of each speech, in minutes, so that the meeting lasts no more than $K$ minutes.

입력

The first line contains an integer $N$ ($1 ≤ N ≤ 100$), the number of directors. The second line contains an integer $K$ ($1 ≤ K ≤ 1000$ and $K ≥ N$), the maximum meeting duration in minutes. For all input cases, each director’s speech lasts at least $1$ minute.

출력

Your program should output a single line, containing a single integer, indicating the length of each board member’s speech, in minutes.

예제 입력 1

7
120

예제 출력 1

16

There are $7$ directors and the maximum meeting length is $120$ minutes. If each director speaks for $16$ minutes, we have $16 \times 7 = 112$ minutes. Since there are six breaks between speeches, and each break lasts one minute, we have $118$ minutes in total. Note that, in this case, two minutes of the meeting time are not used, and that, if the speeches were longer than $16$ minutes, the total time would exceed the $120$-minute limit.

예제 입력 2

1
10

예제 출력 2

10

There is only one director and the meeting lasts $10$ minutes. Therefore, the maximum speaking time of the director is $10$ minutes.

예제 입력 3

100
1000

예제 출력 3

9