#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin >> n; vector a(n); for(int i = 0; i < n; i++) { cin >> a[i]; } sort(a.begin(), a.end()); if(n % 2) { cout << a[n / 2] << endl; } else { cout << setprecision(20) << (a[n / 2] + a[n / 2 - 1]) / 2 << endl; } return 0; }