#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main(){ int N, M, mx, mi=0; cin >> N >> M; vector A(N); set st; bool f=1; for (int i=0; i> A[i]; for (int i=0; i