k=gets.to_i ans=0 nn=1 1000000.times do |i| ans += Math.sin(k*(i+1))/nn nn += 2*i+3 end puts ans