import sys input = sys.stdin.readline N = float(input()) print(N/(1-N))