#include <stdio.h> int main() { int a = 0; scanf("%d",&a); double num = 0.0; for (int i = 1; i <= a; i++) { num += 1.0 / i; } printf("%lf",num); return 0; }