P=float(input())
if P==0.0:
  print(0)
else:
  print(-(P/(P-1)))