#include <stdio.h> int main() { int n; scanf("%d",&n); float a=1; float b=1; while(n>1) { b++; a=a+(1/b); n--; } printf("%f",a); return 0; }