using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AtCoderPre
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            string[] s = Console.ReadLine().Split(' ');
            double[] num = new double[N];

            for (int i = 1; i <= N; i++)
            {
                num[i-1] = double.Parse(s[i-1]);
            }

            Array.Sort(num);
            for(int i = 0; i<= N; i++)
            {
                num[i + 1] += num[i]/2;
            }


        }

    }
}