#include #include using namespace std; int main(){ ios_base::sync_with_stdio; int n,i,j,total; cin >> n; vector a(n); for(i=0;i>a[i]; std::sort(a.begin(),a.end()); total = 9999; for(i=1;i