from sys import stdin def main(): #入力 readline=stdin.readline p=float(readline()) print(p/(1-p)) if __name__=="__main__": main()