#include <stdio.h>
#include <math.h>
double ATAN(double x);
int main(){
double a;
a = 4*(4 * ATAN(1.0/5.0) - ATAN( 1.0 / 239.0));
return 0;
}
double ATAN(double x){
double y;
double t, s;
int n;
y = x;
t = x;
n = 3;
while( 1 ){
t = - t*x*x;
s = t/n;
if(fabs(s
) < 0.000000000001) break; y = y + s;
n++; n++;
}
return y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxtYXRoLmg+CiAKZG91YmxlIEFUQU4oZG91YmxlIHgpOwogCmludCBtYWluKCl7CiAgICBkb3VibGUgYTsKICAgIGEgPSA0Kig0ICogQVRBTigxLjAvNS4wKSAtIEFUQU4oIDEuMCAvIDIzOS4wKSk7CiAgICBwcmludGYoIiUuMTFsZiIsIGEpOwogCiAgICByZXR1cm4gMDsKfQogCmRvdWJsZSBBVEFOKGRvdWJsZSB4KXsKICAgIGRvdWJsZSB5OwogICAgZG91YmxlIHQsIHM7CiAgICBpbnQgbjsKIAogICAgeSA9IHg7CiAgICB0ID0geDsKICAgIG4gPSAzOwogICAgd2hpbGUoIDEgKXsKICAgICAgICB0ID0gLSB0KngqeDsKICAgICAgICBzID0gdC9uOwogICAgICAgIGlmKGZhYnMocykgPCAwLjAwMDAwMDAwMDAwMSkgYnJlYWs7CiAgICAgICAgeSA9IHkgKyBzOwogICAgICAgIG4rKzsgbisrOwogICAgfQogICAgcmV0dXJuIHk7Cn0=