import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); PrintWriter ou = new PrintWriter(System.out); int x = Integer.parseInt(sc.next()) - 1; double q = 0; for(int i = 1 ; i <= Math.pow(10 , 6) ; i++){ q += Math.pow(10 , 6) / (i * Math.pow(i + 1 , x)); } if(x == 1) ou.println((int)Math.pow(10 , 6)); else ou.println((int)q); sc.close(); ou.flush(); } }