n = int(input())
add = float()
su = float()
for i in range(1,n+1):
    add +=((-1)**(i-1))*(2*i-1)
    su +=1/add
print(format(su,'.3f'))