x = gets.to_i cnt = 0 one = 1.to_f for i in 1..500 key = one / (i ** x) cnt += ((1 / i) - key) * (one / (i - 1)) end ans = cnt * (10 ** 6) puts "#{ans.floor}"