N = int(input()) A = [-1] + list(map(int,input().split())) B = [-1] + list(map(int,input().split())) X = [-1] + list(map(int,input().split())) Y = [-1] + list(map(int,input().split())) ans = 0 for i in range(1,N+1): #print(A[2*i-1]+A[2*i]+X[i],A[2*i-1]+B[2*i]+Y[i],B[2*i-1]+A[2*i]+Y[i],B[2*i-1]+B[2*i]+X[i]) ans += max(A[2*i-1]+A[2*i]+X[i],A[2*i-1]+B[2*i]+Y[i],B[2*i-1]+A[2*i]+Y[i],B[2*i-1]+B[2*i]+X[i]) #print(ans) print(ans)