#include using namespace std; using ll = long long; #define all(A) A.begin(),A.end() using vll = vector; #define rep(i, n) for (long long i = 0; i < (long long)(n); i++) using Graph = vector>; ll mod=1e9+7; ll modPow(long long a, long long n, long long p) { if (n == 0) return 1; // 0乗にも対応する場合 if (n == 1) return a % p; if (n % 2 == 1) return (a * modPow(a, n - 1, p)) % p; long long t = modPow(a, n / 2, p); return (t * t) % p; } ll stll(string S) { ll n = 0; ll k = 1; rep(i, S.size()) { n += (k * int(S[S.size() - i - 1]-'0')); k *= 10; k %= mod; n %= mod; } return n; } ll A,B,C,D,P,Q; ll F(ll X){ return A*X*X*X+B*X*X+C*X+D; } int main() { ll X; cin>>X; ll N=1e7; double an=0; rep(i,N){ if(X+i==0)an+=1.0; else { double k=sin(X+i)/(double(X)+double(i)); k*=k; an+=k; } } an+=1/(2*(X+N+0.5)); cout<