#include main(){int n,i=0,a[1000];std::cin>>n;for(;n-i;)std::cin>>a[i++];std::sort(a,a+n);printf("%.2f\n",n%2?a[n/2]:float(a[n/2]+a[n/2-1])/2);}