import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        double[] foodValues = new double[n];
        for (int i = 0; i < n; i++) {
            foodValues[i] = sc.nextDouble();
        }

        Arrays.sort(foodValues);
        double value = foodValues[0];

        for (int i = 1; i < n; i++) {
            value = (value + foodValues[i])/2;
        }

        System.out.println(value);
    }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        double[] foodValues = new double[n];
        for (int i = 0; i < n; i++) {
            foodValues[i] = sc.nextDouble();
        }

        Arrays.sort(foodValues);
        double value = foodValues[0];

        for (int i = 1; i < n; i++) {
            value = (value + foodValues[i])/2;
        }

        System.out.println(value);
    }
} Main public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        double[] foodValues = new double[n];
        for (int i = 0; i < n; i++) {
            foodValues[i] = sc.nextDouble();
        }

        Arrays.sort(foodValues);
        double value = foodValues[0];

        for (int i = 1; i < n; i++) {
            value = (value + foodValues[i])/2;
        }

        System.out.println(value);
    } main {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        double[] foodValues = new double[n];
        for (int i = 0; i < n; i++) {
            foodValues[i] = sc.nextDouble();
        }

        Arrays.sort(foodValues);
        double value = foodValues[0];

        for (int i = 1; i < n; i++) {
            value = (value + foodValues[i])/2;
        }

        System.out.println(value);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc double[] foodValues = new double[n]; foodValues new double[n] n for (int i = 0; i < n; i++) {
            foodValues[i] = sc.nextDouble();
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            foodValues[i] = sc.nextDouble();
        } {
            foodValues[i] = sc.nextDouble();
        } foodValues[i] = sc.nextDouble() foodValues[i] foodValues i sc.nextDouble() sc.nextDouble sc Arrays.sort(foodValues) Arrays.sort Arrays foodValues double value = foodValues[0]; value foodValues[0] foodValues 0 for (int i = 1; i < n; i++) {
            value = (value + foodValues[i])/2;
        } int i = 1; int i = 1; i 1 i < n i n i++ i++ i {
            value = (value + foodValues[i])/2;
        } {
            value = (value + foodValues[i])/2;
        } value = (value + foodValues[i])/2 value (value + foodValues[i])/2 (value + foodValues[i]) value foodValues[i] foodValues i 2 System.out.println(value) System.out.println System.out System System.out value String[] args args public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        double[] foodValues = new double[n];
        for (int i = 0; i < n; i++) {
            foodValues[i] = sc.nextDouble();
        }

        Arrays.sort(foodValues);
        double value = foodValues[0];

        for (int i = 1; i < n; i++) {
            value = (value + foodValues[i])/2;
        }

        System.out.println(value);
    }
} public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        double[] foodValues = new double[n];
        for (int i = 0; i < n; i++) {
            foodValues[i] = sc.nextDouble();
        }

        Arrays.sort(foodValues);
        double value = foodValues[0];

        for (int i = 1; i < n; i++) {
            value = (value + foodValues[i])/2;
        }

        System.out.println(value);
    }
} Main
import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();

        double[] foodValues = new double[n];
        for (int i = 0; i < n; i++) {
            foodValues[i] = sc.nextDouble();
        }

        Arrays.sort(foodValues);
        double value = foodValues[0];

        for (int i = 1; i < n; i++) {
            value = (value + foodValues[i])/2;
        }

        System.out.println(value);
    }
}