# frozen_string_literal: true def solve (1..2000).map{ Math.sin(K * _1) / _1**_1 }.sum end K = gets.to_i puts solve