import java.util.*;enum M{M;System z;{for(Scanner r=new Scanner(z.in);r==r;)z.out.printf("%.2f%n",8.1758*Math.pow(2,r.nextInt()/12.));}}