#include using namespace std; int main(){ int n; vector d(n); for(int i=0;i>d[i]; } sort(d.begin(),d.end()); cout<<(n%2==1?d[n/2]:(d[n/2]+d[n/2-1])/2)<