P = float(input()) print(P/(1-P))