E003


Submit solution

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

Problem type

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

Yêu cầu: Tính \(s=1/2+1/4+1/6+⋯+1/{(2*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

1

Sample Output

0.500

Comments

There are no comments at the moment.