CSES - HIIT Open 2017 - Epic set
  • Time limit: 0.50 s
  • Memory limit: 512 MB

Let EE be a set that consists of all numbers of the form 2k2^k where kk is a positive integer less than xxxx^{x^x} and x=123456789x=123456789.

Maija picks one number from EE uniformly at random. What is the probability that the first digit of the number is aa when the number is written in base bb?

Input

The only input line contains two integers aa and bb.

Output

Print one line that contains the probability. The difference between your answer and the correct answer has to be less than 10610^{-6}.

Constraints

  • 1a<b101 \le a < b \le 10

Example

Input:

3 10

Output:

0.124938737