 
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
  class Main  {
     public static void main(String[]args){
         Scanner scan = new Scanner(System.in);
         int x = scan.nextInt();
         double arr[] = new double[x];
         for(int i = 0 ; i < x ;i++){
             arr[i] = scan.nextInt();
         }
         Arrays.sort(arr);
         for(int i = 0 ;i<x-1 ; i++){
             
             arr[i+1] = (arr[i] + arr[i+1])/2 ;
         }
         if(arr[arr.length-1]  - (int)arr[arr.length-1] == 0 ){
             System.out.println((int)arr[arr.length-1]);
         }else{
         System.out.println(arr[arr.length-1]);
     
         }
     }
} import java.math.BigInteger; BigInteger java.math import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main  {
     public static void main(String[]args){
         Scanner scan = new Scanner(System.in);
         int x = scan.nextInt();
         double arr[] = new double[x];
         for(int i = 0 ; i < x ;i++){
             arr[i] = scan.nextInt();
         }
         Arrays.sort(arr);
         for(int i = 0 ;i<x-1 ; i++){
             
             arr[i+1] = (arr[i] + arr[i+1])/2 ;
         }
         if(arr[arr.length-1]  - (int)arr[arr.length-1] == 0 ){
             System.out.println((int)arr[arr.length-1]);
         }else{
         System.out.println(arr[arr.length-1]);
     
         }
     }
} Main public static void main(String[]args){
         Scanner scan = new Scanner(System.in);
         int x = scan.nextInt();
         double arr[] = new double[x];
         for(int i = 0 ; i < x ;i++){
             arr[i] = scan.nextInt();
         }
         Arrays.sort(arr);
         for(int i = 0 ;i<x-1 ; i++){
             
             arr[i+1] = (arr[i] + arr[i+1])/2 ;
         }
         if(arr[arr.length-1]  - (int)arr[arr.length-1] == 0 ){
             System.out.println((int)arr[arr.length-1]);
         }else{
         System.out.println(arr[arr.length-1]);
     
         }
     } main {
         Scanner scan = new Scanner(System.in);
         int x = scan.nextInt();
         double arr[] = new double[x];
         for(int i = 0 ; i < x ;i++){
             arr[i] = scan.nextInt();
         }
         Arrays.sort(arr);
         for(int i = 0 ;i<x-1 ; i++){
             
             arr[i+1] = (arr[i] + arr[i+1])/2 ;
         }
         if(arr[arr.length-1]  - (int)arr[arr.length-1] == 0 ){
             System.out.println((int)arr[arr.length-1]);
         }else{
         System.out.println(arr[arr.length-1]);
     
         }
     } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan double arr[] = new double[x]; arr new double[x] x for(int i = 0 ; i < x ;i++){
             arr[i] = scan.nextInt();
         } int i = 0 ; int i = 0 ; i 0 i < x i x i++ i++ i {
             arr[i] = scan.nextInt();
         } {
             arr[i] = scan.nextInt();
         } arr[i] = scan.nextInt() arr[i] arr i scan.nextInt() scan.nextInt scan Arrays.sort(arr) Arrays.sort Arrays arr for(int i = 0 ;i<x-1 ; i++){
             
             arr[i+1] = (arr[i] + arr[i+1])/2 ;
         } int i = 0 ; int i = 0 ; i 0 i<x-1 i x-1 x 1 i++ i++ i {
             
             arr[i+1] = (arr[i] + arr[i+1])/2 ;
         } {
             
             arr[i+1] = (arr[i] + arr[i+1])/2 ;
         } arr[i+1] = (arr[i] + arr[i+1])/2 arr[i+1] arr i+1 i 1 (arr[i] + arr[i+1])/2 (arr[i] + arr[i+1]) arr[i] arr i arr[i+1] arr i+1 i 1 2 if(arr[arr.length-1]  - (int)arr[arr.length-1] == 0 ){
             System.out.println((int)arr[arr.length-1]);
         }else{
         System.out.println(arr[arr.length-1]);
     
         } arr[arr.length-1]  - (int)arr[arr.length-1] == 0 arr[arr.length-1]  - (int)arr[arr.length-1] arr[arr.length-1] arr arr.length-1 arr.length arr arr.length 1 (int)arr[arr.length-1] arr arr.length-1 arr.length arr arr.length 1 0 {
             System.out.println((int)arr[arr.length-1]);
         } System.out.println((int)arr[arr.length-1]) System.out.println System.out System System.out (int)arr[arr.length-1] arr arr.length-1 arr.length arr arr.length 1 {
         System.out.println(arr[arr.length-1]);
     
         } System.out.println(arr[arr.length-1]) System.out.println System.out System System.out arr[arr.length-1] arr arr.length-1 arr.length arr arr.length 1 String[]args args
 
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
  class Main  {
     public static void main(String[]args){
         Scanner scan = new Scanner(System.in);
         int x = scan.nextInt();
         double arr[] = new double[x];
         for(int i = 0 ; i < x ;i++){
             arr[i] = scan.nextInt();
         }
         Arrays.sort(arr);
         for(int i = 0 ;i<x-1 ; i++){
             
             arr[i+1] = (arr[i] + arr[i+1])/2 ;
         }
         if(arr[arr.length-1]  - (int)arr[arr.length-1] == 0 ){
             System.out.println((int)arr[arr.length-1]);
         }else{
         System.out.println(arr[arr.length-1]);
     
         }
     }
}
