import std.algorithm, std.array, std.conv, std.stdio, std.string;
void main()
{
    readln;
    auto v = readln.chomp.split.to!(real[]).sort();
    "%.15f".writefln(v.reduce!((a, b) => (a+b)*0.5));
}
