import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Queue<Double> pque = new PriorityQueue<>();
        for(int i = 0; i < n; i++) pque.add(sc.nextDouble());
        while(pque.size() > 1) {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        }
        System.out.println(pque.poll());
    }
} import java.util.PriorityQueue; PriorityQueue java.util import java.util.Queue; Queue java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Queue<Double> pque = new PriorityQueue<>();
        for(int i = 0; i < n; i++) pque.add(sc.nextDouble());
        while(pque.size() > 1) {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        }
        System.out.println(pque.poll());
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Queue<Double> pque = new PriorityQueue<>();
        for(int i = 0; i < n; i++) pque.add(sc.nextDouble());
        while(pque.size() > 1) {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        }
        System.out.println(pque.poll());
    } main {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Queue<Double> pque = new PriorityQueue<>();
        for(int i = 0; i < n; i++) pque.add(sc.nextDouble());
        while(pque.size() > 1) {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        }
        System.out.println(pque.poll());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc Queue<Double> pque = new PriorityQueue<>(); pque new PriorityQueue<>() for(int i = 0; i < n; i++) pque.add(sc.nextDouble()); int i = 0; int i = 0; i 0 i < n i n i++ i++ i pque.add(sc.nextDouble()); pque.add(sc.nextDouble()) pque.add pque sc.nextDouble() sc.nextDouble sc while(pque.size() > 1) {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        } pque.size() > 1 pque.size() pque.size pque 1 {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        } double tmp = (pque.poll() + pque.poll()) / 2.0; tmp (pque.poll() + pque.poll()) / 2.0 (pque.poll() + pque.poll()) pque.poll() pque.poll pque pque.poll() pque.poll pque 2.0 pque.add(tmp) pque.add pque tmp System.out.println(pque.poll()) System.out.println System.out System System.out pque.poll() pque.poll pque String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Queue<Double> pque = new PriorityQueue<>();
        for(int i = 0; i < n; i++) pque.add(sc.nextDouble());
        while(pque.size() > 1) {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        }
        System.out.println(pque.poll());
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Queue<Double> pque = new PriorityQueue<>();
        for(int i = 0; i < n; i++) pque.add(sc.nextDouble());
        while(pque.size() > 1) {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        }
        System.out.println(pque.poll());
    }
} Main
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        Queue<Double> pque = new PriorityQueue<>();
        for(int i = 0; i < n; i++) pque.add(sc.nextDouble());
        while(pque.size() > 1) {
            double tmp = (pque.poll() + pque.poll()) / 2.0;
            pque.add(tmp);
        }
        System.out.println(pque.poll());
    }
}
