#include int main(){ int k; scanf("%d", &k); double ans = 0; for(int i = 1; i <= k; ++i){ ans += 1. / i; } ans /= k; printf("%.12f\n", ans); }