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