#include using namespace std; typedef long long ll; int main(){ int N; cin >> N; vector A(N); for(int i=0; i> A.at(i); sort(A.begin(), A.end()); if(N%2==0) cout << (double)(A.at(N/2-1) + A.at(N/2))/2 << endl; else cout << A.at(N/2) << endl; }