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