#include using namespace std; #define rep(i, n) for(int i=0; i<(int)(n); i++) #define rep1(i, n) for(int i=1; i<(int)(n); i++) typedef long long ll; typedef vector vi; typedef vector wi; typedef vector vd; int main(){ cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; vd a(n); rep(i, n)cin >> a[i]; sort(a.begin(), a.end()); if(n%2==1)printf("%.0lf\n", a[n/2]); else printf("%.1lf\n", (a[n/2-1]+a[n/2])/2); return 0; }