s = 0
for p in range(1011):
    s = s + (-1)**p / (2*p + 1)
print(s)
