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