#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin >> n; vector v(n); for (int i=0; i> v[i]; sort(v.begin(), v.end()); if (n & 1) { cout << v[n/2] << "\n"; } else { cout << (v[n/2-1]+v[n/2])/2.0 << "\n"; } return 0; }