#include #include #include #include #include #include #include using namespace std; #define diff(x,y) ((x > y) ? (x - y) : (y - x)) #define us(x) (x > 0) ? x : x * -1 #define lli long long int int main() { int n; cin >> n; vector num(n, 0); for (int i = 0; i < n; i++) cin >> num[i]; sort(num.begin(), num.end()); if (n % 2) cout << num[n / 2] << endl; else cout << (num[n / 2 - 1] + num[n / 2]) / 2.0 << endl; return 0; }