#include #include #include using namespace atcoder; using mint = modint998244353; using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define Inf 1000000 int main(){ int N,K; cin>>N>>K; fenwick_tree F(1000005); rep(i,N){ int w; cin>>w; if(w>0){ if(F.sum(w,1000005)0)F.add(w,-1); } } cout<