#include #include #include #include #include #include #define all(x) begin(x),end(x) #define ll long long #define P pair #define lP pait using namespace std; int main() { int n,ans=10000000; cin>>n; vector a(n); for(int i=0;i>a[i]; } sort(all(a)); for(int i=0;i