import sys readline=sys.stdin.readline write=sys.stdout.write from math import gcd as GCD import math P=float(readline()) ans=P/(1-P) print(ans)