#include using namespace std; #define REP(i,N) for(i=0;i P; typedef struct{ int first; int second; int third; }T; //昇順 bool comp_Se(T& l, T& r){ return l.second < r.second; } int main(void){ int N; cin >> N; int i; vector A(N); REP(i,N) cin >> A[i]; sort(A.begin(),A.end()); if(N%2) cout << A[N/2] << endl; else cout << (float)(A[N/2] + A[N/2-1])/2 << endl; return 0; }