p = double(input()) print(p / (1 - p))