#include using namespace std; int main(){ long int n,a[100000]; int i,j,d=0,s=999999; cin>>n; for(i=0;i>a[i]; for(i=0;i