#include #include #define repeat_from(i,m,n) for (int i = (m); (i) < (n); ++(i)) int main() { long double x; scanf("%Lf", &x); long double y = 0; const int l = 1000000; repeat_from (n,1,l) y += powl(x+n, -2); y += 1.0/l; printf("%.12Lf\n", y); return 0; }