﻿from math import *

N=int(input("N ="))
S=0
for i in range(1,N+1):
    S=S+sin(i)/i
p=2*S+1
print(p)




