def main(): p = float(input()) print((p / (1-p))) if __name__ == "__main__": main()