def compute_prob(n): return 1.0 / n def main(): n = int(input()) prob = compute_prob(n) print("{:.12f}".format(prob)) if __name__ == "__main__": main()