def main(): k = int(input()) sum_ = 0 for n in range(1, k+1): sum_ += 1/n print(sum_ / k) if __name__ == "__main__": main()