- Time limit: 0.50 s
- Memory limit: 512 MB
Let be a set that consists of all numbers of the form where is a positive integer less than and .
Maija picks one number from uniformly at random. What is the probability that the first digit of the number is when the number is written in base ?
Input
The only input line contains two integers and .
Output
Print one line that contains the probability. The difference between your answer and the correct answer has to be less than .
Constraints
Example
Input:
3 10
Output:
0.124938737