s = 0
for p in range(1,2022):
    s = s + 1 / (3*p - 1)
print(s)
