#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int n;
double sum = 0;
cin >> n;
for (int i = 1; i <= n; i++) {
sum += 1. / (i * (i + 1));
}
cout << fixed << setprecision(6) << sum;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8aW9tYW5pcD4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewogICAgaW50IG47Cglkb3VibGUgc3VtID0gMDsKCWNpbiA+PiBuOwoJZm9yIChpbnQgaSA9IDE7IGkgPD0gbjsgaSsrKSB7CgkJc3VtICs9IDEuIC8gKGkgKiAoaSArIDEpKTsKCX0KCWNvdXQgPDwgZml4ZWQgPDwgc2V0cHJlY2lzaW9uKDYpIDw8ICBzdW07Cn0=