import java.util.*;
import java.lang.*;
import java.io.*;
import java.math.*;
class InfiniteSum {
//Scanner read = new Scanner(System.in);
double E = 1e-1;
double x = -1;
double sum = 0.0;
for(int i
= 2; Math.
abs(x
) > E
; i
++){ sum += x;
x *= (-1./i);
}
System.
out.
print("Сумма = "+sum
); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLm1hdGguKjsKCmNsYXNzIEluZmluaXRlU3VtIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbiB7CgkJLy9TY2FubmVyIHJlYWQgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWRvdWJsZSBFID0gMWUtMTsKCQlkb3VibGUgeCA9IC0xOwoJCWRvdWJsZSBzdW0gPSAwLjA7CgkJZm9yKGludCBpID0gMjsgTWF0aC5hYnMoeCkgPiBFIDsgaSsrKXsKCQkJc3VtICs9IHg7CgkJCXggKj0gKC0xLi9pKTsKCQl9CgkJU3lzdGVtLm91dC5wcmludCgi0KHRg9C80LzQsCA9ICIrc3VtKTsKCX0KfQ==