#include using namespace std; int main(){ int n; double to; cin >> n; int a[n]; for(int i = 0; i < n; i++) cin >> a[i]; for(int i = 0; i < n;i++) for(int j = i;j a[j+1]){ int t = a[j]; a[j] = a[j+1]; a[j+1] = t; } if(n%2==1) to = a[(n/2)]; else to = (a[n/2] + a[n/2-1]) / 2.0; cout << to << endl; }