Hide

Problem J
Melting Snow

The snowfall in Alberta is setting records this year. At the beginning of every single day, $S$ centimeters of snow falls. At the end of every single day, $P$ percent of the snow currently on the ground melts. As a member of the Alberta Consecutive Precipitation Calculation (ACPC) committee, you have been tasked with calculating the maximum amount of snow that will ever be on the ground. You know already that the ground starts with no snow on it and this pattern of snow will continue forever.

Input

The first line of input contains two integers $S$ and $P$ ($1 \leq S \leq 10^5$, $1 \leq P \leq 100$). $S$ indicates the daily amount of snowfall in centimeters. $P$ indicates the percentage of snow that melts at the end of each day.

Output

Output a single floating-point value equal to the maximum amount of snow in centimeters that will ever appear on the ground. The restrictions on the input guarantee that this number cannot be infinite. Your answer will be considered correct if it is within a relative or absolute error of $10^{-6}$ of the correct answer.

Sample Input 1 Sample Output 1
1 100
1.000000
Sample Input 2 Sample Output 2
1 1
100.000000

Please log in to submit a solution to this problem

Log in