import sys def input(): return sys.stdin.readline().rstrip('\n') def main(): p = float(input()) print(1/(1-p)-1) if __name__ == '__main__': main()