CodeLab Academy 📞 9936 6696
← List Python · Level 4: For loops Code · 40 points ← #309 #311 →

#310. Harmonic sum

You get n. Print the sum 1 + 1/2 + 1/3 + ... + 1/n with 3 decimal places. ### Input One integer n (1 ≤ n ≤ 1000). ### Output A decimal number.

Examples

Input
558
Output
6.902
Input
818
Output
7.285

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!