#include using namespace std; #include using namespace atcoder; using ll=long long; using Graph=vector>>; #define INF 1000000000000000000 #define MOD 1000000007 #define MAX 1000 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