let N=Int(readLine()!)!,A=readLine()!.characters.split(" ").map{Int(String($0))!},B=readLine()!.characters.split(" ").map{Int(String($0))!}
print((0..<N).reduce(0){$0+min(min(A[$1],B[$1])+A[$1+1],B[$1])})