package main import . "fmt" import . "sort" func main() { var n,k int Scan(&n,&k) var x int64 a :=make([]int,n) for i:=range a { Scan(&a[i]) x+=int64(a[i]) } for i:=range a { Scan(&a[i]) x+=int64(a[i]) } for i,v:=range a { Scan(&a[i]) a[i]-=v } Ints(a) for _,v:=range a[k:] { x+=int64(v) } Println(x) }