#include using namespace std; using ll = long long; int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); ll N, K, S=0, A; cin >> N >> K; vector B(N), C(N); for (int i=0; i> A; S += A; } for (int i=0; i> B[i]; S += B[i]; } for (int i=0; i> C[i]; C[i] -= B[i]; } sort(C.rbegin(), C.rend()); for (int i=0; i