c++
#include <iostream>
using namespace std;
int main() {
double s = 0; int n;
cin >> n;
for (int i = 1; i < n + 1; i++)
s += 1. / i;
cout << s;
return 0;
}
c++
#include <iostream>
using namespace std;
int main() {
double s = 0; int n;
cin >> n;
for (int i = 1; i < n + 1; i++)
s += 1. / i;
cout << s;
return 0;
}