import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] v = new int[N];
        double ans = 0;

        ArrayList<Integer> list = new ArrayList<Integer>();

        for(int i=0; i<N; i++){
            list.add(sc.nextInt());
        }
        Collections.sort(list);
        ans = list.get(0);

        for(int i=1; i<N; i++){
            ans = (ans + list.get(i)) / 2;
        }

        if(ans==(int)ans)
        System.out.println((int)ans);
        else if(ans!=(int)ans)
        System.out.println(ans);
    }
} import java.util.*; util.* java public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] v = new int[N];
        double ans = 0;

        ArrayList<Integer> list = new ArrayList<Integer>();

        for(int i=0; i<N; i++){
            list.add(sc.nextInt());
        }
        Collections.sort(list);
        ans = list.get(0);

        for(int i=1; i<N; i++){
            ans = (ans + list.get(i)) / 2;
        }

        if(ans==(int)ans)
        System.out.println((int)ans);
        else if(ans!=(int)ans)
        System.out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] v = new int[N];
        double ans = 0;

        ArrayList<Integer> list = new ArrayList<Integer>();

        for(int i=0; i<N; i++){
            list.add(sc.nextInt());
        }
        Collections.sort(list);
        ans = list.get(0);

        for(int i=1; i<N; i++){
            ans = (ans + list.get(i)) / 2;
        }

        if(ans==(int)ans)
        System.out.println((int)ans);
        else if(ans!=(int)ans)
        System.out.println(ans);
    } main {
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] v = new int[N];
        double ans = 0;

        ArrayList<Integer> list = new ArrayList<Integer>();

        for(int i=0; i<N; i++){
            list.add(sc.nextInt());
        }
        Collections.sort(list);
        ans = list.get(0);

        for(int i=1; i<N; i++){
            ans = (ans + list.get(i)) / 2;
        }

        if(ans==(int)ans)
        System.out.println((int)ans);
        else if(ans!=(int)ans)
        System.out.println(ans);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int[] v = new int[N]; v new int[N] N double ans = 0; ans 0 ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for(int i=0; i<N; i++){
            list.add(sc.nextInt());
        } int i=0; int i=0; i 0 i<N i N i++ i++ i {
            list.add(sc.nextInt());
        } {
            list.add(sc.nextInt());
        } list.add(sc.nextInt()) list.add list sc.nextInt() sc.nextInt sc Collections.sort(list) Collections.sort Collections list ans = list.get(0) ans list.get(0) list.get list 0 for(int i=1; i<N; i++){
            ans = (ans + list.get(i)) / 2;
        } int i=1; int i=1; i 1 i<N i N i++ i++ i {
            ans = (ans + list.get(i)) / 2;
        } {
            ans = (ans + list.get(i)) / 2;
        } ans = (ans + list.get(i)) / 2 ans (ans + list.get(i)) / 2 (ans + list.get(i)) ans list.get(i) list.get list i 2 if(ans==(int)ans)
        System.out.println((int)ans);
        else if(ans!=(int)ans)
        System.out.println(ans); ans==(int)ans ans (int)ans System.out.println((int)ans) System.out.println System.out System System.out (int)ans if(ans!=(int)ans)
        System.out.println(ans); ans!=(int)ans ans (int)ans System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] v = new int[N];
        double ans = 0;

        ArrayList<Integer> list = new ArrayList<Integer>();

        for(int i=0; i<N; i++){
            list.add(sc.nextInt());
        }
        Collections.sort(list);
        ans = list.get(0);

        for(int i=1; i<N; i++){
            ans = (ans + list.get(i)) / 2;
        }

        if(ans==(int)ans)
        System.out.println((int)ans);
        else if(ans!=(int)ans)
        System.out.println(ans);
    }
} public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] v = new int[N];
        double ans = 0;

        ArrayList<Integer> list = new ArrayList<Integer>();

        for(int i=0; i<N; i++){
            list.add(sc.nextInt());
        }
        Collections.sort(list);
        ans = list.get(0);

        for(int i=1; i<N; i++){
            ans = (ans + list.get(i)) / 2;
        }

        if(ans==(int)ans)
        System.out.println((int)ans);
        else if(ans!=(int)ans)
        System.out.println(ans);
    }
} Main
import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        int[] v = new int[N];
        double ans = 0;

        ArrayList<Integer> list = new ArrayList<Integer>();

        for(int i=0; i<N; i++){
            list.add(sc.nextInt());
        }
        Collections.sort(list);
        ans = list.get(0);

        for(int i=1; i<N; i++){
            ans = (ans + list.get(i)) / 2;
        }

        if(ans==(int)ans)
        System.out.println((int)ans);
        else if(ans!=(int)ans)
        System.out.println(ans);
    }
}