K = gets.to_i puts "%.12f" % (1..200).map { |n| Rational(Math.sin(n * K), n ** n) }.sum