PivotOJ

FAKTOR

시간 제한: 1000ms메모리 제한: 128MB출처: COCI 2009-2010BOJ 2914

문제

Impact factor of a scientific journal is a measure reflecting the average number of citations to articles published in science journals. For this task we are using a simplified formula for calculating the impact factor:

(Total sum of all citations articles published in the journal recived)/(Total number of articles published)

Rounding is always preformed up. For example the impact factor of the “Journal for ore research and time wasting” that published 38 articles quoted 894 times is 894 / 38 = 23.53 rounding up to 24.

You are the editor of one scientific journal. You know how much article you are going to publish and the owners are pushing you to reach a specific impact factor. You are wondering how many scientists you will have to bribe to cite your article to meet the owners demands. Since money is tight you want to bribe the minimal amount of scientists.

입력

First and only line of input will contain 2 integers, A (1 ≤ A ≤ 100), number of articles you plan to publish and I (1 ≤ I ≤ 100) impact factor the owners require.

출력

First and only line of output should contain one integer, the minimal number of scientists you need to bribe.

예제

예제 1

입력
38 24
출력
875

예제 2

입력
1 100
출력
100

예제 3

입력
10 10
출력
91
코드를 제출하려면 로그인하세요.