#include #include using namespace std; using namespace atcoder; typedef modint998244353 mint; typedef long long ll; int main(){ int n, k; cin >> n >> k; vector bucket(n+1); for (int i=0; i> a; bucket[a]++; } sort(bucket.begin(), bucket.end()); reverse(bucket.begin(), bucket.end()); int piv = 0; int ans = 1; for (int i=0; i