from sys import stdin


def main():
    input = lambda: stdin.readline()[:-1]
    P = float(input())
    print(P / (1 - P))


main()