#include using namespace std; #define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; template using V=vector; template using VV=V>; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll n,k; cin>>n>>k; V A(n),B(n),C(n); ll sum=0; rep(i,n){ cin>>A[i]; sum+=A[i]; } rep(i,n) cin>>B[i]; rep(i,n){ cin>>C[i]; sum+=C[i]; } V D(n); rep(i,n) D[i]=B[i]-C[i]; sort(ALL(D)); reverse(ALL(D)); rep(i,k) sum+=D[i]; cout<