#include #include using namespace std; int main() { int n,a[1010]; cin >> n,a; sort(a,a + n); cout << (a[n/2]+a[(n-1)/2])/2.0 << endl; return 0; }