#include using namespace std; typedef long long ll; typedef long double ld; const ld PI = acos(-1); int main() { cin.tie(0); ios::sync_with_stdio(false); ld x; cin >> x; ld ans = PI * PI / 6; for(int i = 1; i < 10000000; i++) { ans += -1.0 / i / i + 1.0 / (x + i) / (x + i); } cout << fixed << setprecision(15) << ans << endl; }