Source: https://open.kattis.com/problems/faktor
The 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:
Rounding is always performed upwards. For example the impact factor of the “Journal for ore research and time wasting” that published 38 articles cited 894 times is 894/38 = 23.53 rounding up to 24.
You are the editor of one scientific journal. You know how many articles you are going to publish and the impact factor you need to reach. You want to find the minimum number of citations needed to reach it.
First and only line of input will contain 2 integers, A (1 ≤ A ≤ 100), the number of articles you plan to publish and I (1 ≤ I ≤ 100), the impact factor you need to reach.
The first and only line of output should contain one integer, the minimal number of citations needed.
| Sample Input 1 | Sample Output 1 |
|---|---|
38 24 | 875 |
| Sample Input 2 | Sample Output 2 |
1 100 | 100 |
| Sample Input 3 | Sample Output 3 |
10 10 | 91 |