#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()); bool ok = true; for(int i=0; i