#include #include #include #include #include #include #include using namespace std; int main(){ int n; cin >> n; vector d(n); for(int i=0;i> d[i]; } sort(d.begin(),d.end()); int mx=d[n-1]-d[0]; int mi=999999999; for(int i=0;i