#include using namespace std; typedef long long ll; signed main(){ ios::sync_with_stdio(false); cin.tie(0); int n; cin>>n; ll y[n]; for(int i=0;i>y[i]; } ll ans=0; sort(y,y+n); ll mid=y[n/2]; for(int i=0;i