import java.io.BufferedInputStream;
import java.util.Scanner;
public class test {
public static void main(String[] args) {
Scanner cin = new Scanner(new BufferedInputStream(System.in));
int n = cin.nextInt();
cin.close();
double sum = 0.0;
for (int i = 1; i <= n; ++i) {
sum += i * 1.0 / ((2 * i - 1) * (2 * i + 1));
}
System.out.printf("%.3f\n", sum);
}
}