import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); double k = sc.nextInt(); double ans = 0; for (int i = 1; i < 10000000; i++) { ans += Math.sin(k * i) / Math.pow(i, i); } System.out.println(ans); } }