#include using namespace std; int main(){ int N; cin >> N; cout << fixed << setprecision(20); cout << riemann_zeta(N) << endl; }