#include #include #include #include #include #include using namespace std; using ll = long long; int main() { int N; cin >> N; vector x(N); for(int i=0; i> x[i]; } sort(x.begin(), x.end()); x.erase(unique(x.begin(), x.end()), x.end()); int res = 1e9; for(int i=0; i