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