#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); int k; cin >> k; long double ans = 0; for (int n = 1; n <= 9; n++) { ans += sin(k * n) / pow(n, n); } cout << setprecision(16) << fixed << ans << endl; }