#include <iostream>
#include <math.h>
using namespace std;
int main() {
double E = 1e-1;
double x = -1;
double sum = 0.0;
for(int i = 2; fabs(x) > E ; i++){
sum += x;
//cout << x << " " ;
x *= (-1./i);
}
cout << sum;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7Cglkb3VibGUgRSA9IDFlLTE7Cglkb3VibGUgeCA9IC0xOwoJZG91YmxlIHN1bSA9IDAuMDsKCWZvcihpbnQgaSA9IDI7IGZhYnMoeCkgPiBFIDsgaSsrKXsKCQlzdW0gKz0geDsKCQkvL2NvdXQgPDwgeCA8PCAiICIgOwoJCQoJCXggKj0gKC0xLi9pKTsKCQkgCgl9Cgljb3V0IDw8IHN1bTsKCXJldHVybiAwOwp9