# Sn calculator
import math
n = 100000
S = 0
def function(x):
	return(1/(x))
for i in range(2, n):
	S += function(i)
print(S)