E006


Submit solution

Points: 20
Time limit: 1.0s
Memory limit: 512M

Problem type

Cho số nguyên dương \(n\).

Yêu cầu: Tính \(s=1+1/2+1/3+⋯+1/n\)

Input

  • Gồm một dòng chứa số nguyên \(n (1≤n≤10^6 ).\)

Output

  • Gồm một dòng ghi tổng \(s\) tìm được. Kết quả lấy 3 chữ số thập phân.

Sample Input

3

Sample Output

1.833

Comments

There are no comments at the moment.