#include #include #include #include #include #include #include #include #include #include using namespace std; int main(){ int n; cin >> n; vector v(n); for(int i=0; i> v[i]; sort(v.begin(), v.end()); v.erase( unique(v.begin(), v.end()), v.end()); int ans = 1<<29; if(v.size() < 2) ans = 0; else{ for(int i=1; i