#include using namespace std; typedef long long ll; int main(){ int n; double ans; cin >> n; vectorm(n); for(int i;i> m[i]; } sort(m.begin(),m.end()); if(n%2==1) ans=m[n/2]; else ans=(double)(m[n/2-1]+m[n/2])/2; cout << ans << endl; return 0; }