#include using namespace std; int main(){ cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; vector vc(n); for(auto &i : vc){ cin >> i; } sort(vc.begin(),vc.end()); int sum = (n-1) / 2.0; cout << ( n % 2 == 0 ? ( vc[sum] + vc[sum + 1] )/ 2.0 : vc[sum] ) << endl; return 0; }