#include using namespace std; using ll=long long; #include #include using namespace atcoder; using mint=modint998244353; using namespace std; using namespace atcoder; using mint = modint998244353; struct S { mint a; int size; }; S op(S l, S r) { return S{l.a + r.a, l.size + r.size}; } S e() { return S{0, 0}; } S mapping(mint l, S r) { return S{r.a + r.size * l, r.size}; } mint composition(mint l, mint r) { return l+r;} mint id() { return 0; } int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); ll N,K; cin>>N>>K; vector C(1e6+1,0); for(int i=0;i>A; C[A]++; } ll cnt=0; for(int i=0;icnt)an=a; } cout<