n,x,y=map(int,raw_input().split())
andy=map(int,raw_input().split())
bob=map(int,raw_input().split())
andy.sort(reverse=True)
bob.sort(reverse=True)
sum=0
count=0
for i in xrange(0,x):
sum=sum+andy[i]
#print andy[i]
for i in xrange(x,n):
sum=sum+bob[count]
#print bob[count]
count=count+1
print sum
bix4LHk9bWFwKGludCxyYXdfaW5wdXQoKS5zcGxpdCgpKQphbmR5PW1hcChpbnQscmF3X2lucHV0KCkuc3BsaXQoKSkKYm9iPW1hcChpbnQscmF3X2lucHV0KCkuc3BsaXQoKSkKYW5keS5zb3J0KHJldmVyc2U9VHJ1ZSkKYm9iLnNvcnQocmV2ZXJzZT1UcnVlKQpzdW09MApjb3VudD0wCmZvciBpIGluIHhyYW5nZSgwLHgpOgoJc3VtPXN1bSthbmR5W2ldCgkjcHJpbnQgYW5keVtpXQpmb3IgaSBpbiB4cmFuZ2UoeCxuKToKCXN1bT1zdW0rYm9iW2NvdW50XQoJI3ByaW50IGJvYltjb3VudF0KCWNvdW50PWNvdW50KzEKcHJpbnQgc3Vt