#include using namespace std; using ll = long long; using ld = long double; using ull = long long; #define all(s) (s).begin(),(s).end() #define rep2(i, m, n) for (int i = (m); i < (n); ++i) #define rep(i, n) rep2(i, 0, n) #define drep2(i, m, n) for (int i = (m)-1; i >= (n); --i) #define drep(i, n) drep2(i, n, 0) #define rever(vec) reverse(vec.begin(), vec.end()) #define sor(vec) sort(vec.begin(), vec.end()) #define fi first #define se second //#define P pair const ll mod = 998244353; //const ll mod = 1000000007; const ll inf = 2000000000000000000ll; static const long double pi = 3.141592653589793; templatevoid vcin(vector &n){for(int i=0;i>n[i];} templatevoid vcout(vector &n){for(int i=0;i void chmax(T& t,const U& u){if(t void chmin(T& t,const U& u){if(t>u) t=u;} template void ifmin(T t,T u){if(t>u){cout<<-1< void ifmax(T t,T u){if(t>u){cout<<-1<auto make_vector(T x,int arg,Args ...args){if constexpr(sizeof...(args)==0)return vector(arg,x);else return vector(arg,make_vector(x,args...));} ll modPow(ll a, ll n, ll mod) { ll ret = 1; ll p = a % mod; while (n) { if (n & 1) ret = ret * p % mod; p = p * p % mod; n >>= 1; } return ret; } void gbjsmzmfuuvdf(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); cout<< fixed << setprecision(20); } vector graph[200000]; ll f[200000]; int main() { gbjsmzmfuuvdf(); ll n,m; cin>>n>>m; map,ll> check; assert(1<=n&&n<=100000&&0<=m&&m<=min(100000ll,n*(n-1)/2)); vector ans; vector a(n); vcin(a); for(int i=0;i>x>>y; assert(1<=min(x,y)&&min(x,y)> s; for(int i=0;i>k; assert(1<=k&&k<=n); vector p; for(int i=0;i>b; assert(1<=b&&b<=n); b--; f[b]=1; p.push_back(b); } vector q=p; sor(q); assert(p==q); ll count=0; for(int i=0;i