#include #define rep(i,n) for(int i=(0);i<(n);i++) using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(false); double k; cin >> k; double ans = 0.0; rep(i, 1e7){ ans += sin(k * (i+1)) / pow((i+1),(i+1)); } cout << setprecision(10) << fixed << ans << endl; }