100 atcoder#ABC142A. [ABC142A] Odds of Oddness
[ABC142A] Odds of Oddness
Score : points
Problem Statement
Given is an integer .
Takahashi chooses an integer from the positive integers not greater than with equal probability.
Find the probability that is odd.
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the probability that is odd. Your output will be considered correct when its absolute or relative error from the judge's output is at most .
4
0.5000000000
There are four positive integers not greater than : , , , and . Among them, we have two odd numbers: and . Thus, the answer is .
5
0.6000000000
1
1.0000000000