#include #include #include #include #include #include #define ll long long #define P pair #define lP pait using namespace std; int main() { int n; int ma=0; int mi=0; cin>>n; vector a(n); for(int i=0;i>a[i]; } mi=abs(a[0]-a[1]); for(int i=0;i