#yuki1271 k=int(input()) res=0 for i in range(1,k+1): res+=1/i print(res/k)