Under construction

Still being built. Things may change

The Coin God Geonmo

Time limit1sMemory limit1024 MB

Summary
Given a principal N and a loss percentage X, find the percentage rise needed from the reduced amount to return exactly to N.
Level

Easy2 of 10

Topics
Math
Solved
No attempts yet

Problem

Morgan lost XX\\% of the principal on coins, so Morgan went to Geonmo, the coin god who can change coin prices however he wants. Geonmo is known for granting only one conscientious request in a lifetime. Morgan asked him to raise the current coin price by XX\\% so that the principal is recovered exactly. However, Morgan overlooked one fact. If the price drops XX\\% below the principal and then rises XX\\% from that lower price, it does not return to the principal.

For example, suppose the principal is 100 won and X=10X=10. After losing 1010\\%, the value becomes 90 won. A further 1010\\% rise brings it to 99 won.

Help the careless Morgan recover the principal by finding the percentage that the current amount must rise, relative to the current amount.

Input

The first line contains an integer NN, the principal Morgan had. (100≤N≤1 000)(100\le N\le 1\, 000) The second line contains an integer XX, the percentage Morgan lost. (1≤X≤99)(1\le X\le 99)

Output

Print the answer on the first line. The answer is correct if its absolute or relative error from the true answer is at most 10−610^{-6}.

Examples2

  1. Example 1

    Input
    100
    10
    
    Expected output
    11.111111
    
  2. Example 2

    Input
    100
    13
    
    Expected output
    14.942529