#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long ll; const int inf=1<<30; const ll INF=1LL<<62; typedef pair P; typedef pair PP; const ll MOD=998244353; int main(){ int N; ll K; cin>>N>>K; vector A(N); for(int i=0;i>A[i]; } sort(A.begin(),A.end()); ll ans=0; for(int i=0;i